Can I set field visibility for multiple fields using variables? If so, how?
I have a rather large form that shows fields as you go. It has a reset button at the top. This button works fine to clear the fields, but it doesn't "re-hide" the fields that became visible based on your selections. I know that I can add a presence line for each one of the fields and set that to hidden when the button is clicked, but I'm lazy and that's a lot of fields to type out and maintain. I would like to use a script variable in each one of the fields and then write a simple script that says if this variable equals this value set the presence to hidden. Is that possible? If so, how?
The top of the form has the following check boxes (coded to look and behave like radio buttons):
-- Incident
-- Disruption
-- SRMulti
-- Maintenance
-- PulledRelease
-- Other
It has separate Subforms for each check box. Each one of those Subforms has fields and subforms. I was thinking about adding a Visibility variable to all of the fields but setting the value to match the check box name and then writing a script that says: If Visibility equals <check box name> hide the field.
Environment:
-- LiveCycle Designer ES3 Version 10.0.2
-- Adobe Acrobat X Version 10.1.16
-- Windows 7
