Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Hiding form using check box

Avatar

Level 1

Hi all,

Can anyone help me how to hide and unhide a form depends on checkbox selection. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@kamalams6577372 

Try the below snippet.

$(document).on("change", "./checkbox-name", function(e) {
    if($(this).prop("checked")) {
        // Logic Checked
    } else {
        // Logic un checked
    }
});

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@kamalams6577372 

Try the below snippet.

$(document).on("change", "./checkbox-name", function(e) {
    if($(this).prop("checked")) {
        // Logic Checked
    } else {
        // Logic un checked
    }
});
can you please share me some example