Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Dropdown selection to make a subform visible

Avatar

Not applicable
Hi I am trying to work out how to make a subform visible/invisible dependant on the selection made in a previous dropdown box. Any ideas?
1 Reply

Avatar

Level 2
Add the following javsscript code in the change event:



var selection = xfa.event.newText;



if(selection == "visible"){

subform.presence = "visible"

}

else {

subform.presence = "hidden"

}