Hide/show multiple subforms based on dropdown selection

Avatar

Avatar

usuggestaname

Avatar

usuggestaname

usuggestaname

04-03-2015

Hi - I am wanting to use a selection from a dropdown to hide/show 17 subforms that contain text only.I've tried if/else statements that I've used in the same way before but I'm having problems making it work this time. Is there a better way to do this when multiple subforms are required to hide/show. Thanks.

View Entire Topic

Avatar

Avatar

DaveSQN

Avatar

DaveSQN

DaveSQN

09-03-2015

if (this.rawValue == "Value 1" || this.rawValue == "Value 2") { //Select which options on the dropdown you want to use

  this.resolveNode("subform").presence = "hidden"; //Sets the subform "subform" to hidden

}

Alternatively use the Action Builder in the tools menu and make sure you are putting the Javascript on the "Change" event.