Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Unhide subform based on 2 Dropdown Lists

Avatar

Former Community Member

I would like to be able to unhide a subform when the answers in dropdown1 and dropdown2 match, if they don't match then the subform would not open.

Any advice would be grateful

1 Reply

Avatar

Level 10

Hi,

Try something like this JavaScript in the calculate event of the subform you want to unhide;

if (DropDownList1.rawValue == DropDownList2.rawValue)

{

    this.presence = "visible";

}

else

{

    this.presence = "hidden";

}