Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Dropdown selection to make a subform visible


Former Community Member
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


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"