Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Hide/Unhide Multiple Fields via Radio Button

$
0
0

Hello All

 

I am using the script below on a radio button to hide and unhide a field on a form. I also want to use the same button to control another field named "lbl_dynamic instructions"  The Acrobat forms book I am using as a guide does not address the hiding and unhiding of more than one field at a time. My attempts to add the second field haven't been successfull. How can I revise the script to control two fields instead of one?

 

Thanks in advance for any ideas on this.

 

 

var lst_dynamicFld = this.getField("lst_dynamic")

 

if (event.target.value == "Yes")    {

    lst_dynamicFld.hidden = false

}

else    {

    lst_dynamicFld.hidden = true

}


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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