Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Show/Hide Fields Based on Dropdown

$
0
0

Hi,

 

I am attempting to show/hide subforms with a dropdown selection. I've found a lot of information on the subject, and have ended up with this as my script:

 

 form1.Page1.Division::exit - (JavaScript, client)

switch (Page1.Division.rawValue)
{
   case "1":   SubformZZI.presence = "visible";   SubformZZR.presence = "hidden";         break;   case "2":   SubformZZI.presence = "hidden";   SubformZZR.presence = "visible";             break;
}

 

However, it is not doing anything when a selection is made in the dropdown box. I have the "SubformZZI" initially set as "Visible" and the "SubformZZR" initially set as "Hidden".

 

Any suggestions?

 

Regards,

ZeroZone


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>