button on click show/hide other fields
Hi,
I have a button created on my Acrobat Form, and I would like to use this button to show/hide some other fields.
So basically, if user click once, it will display some other fields, and if clicks for the second time it will again hide fields.
If it was a checkbox, I could simply assign a mouse up event as follows to solve the issue:
this.getField("myfieldtoshowhide").display = (event.target.value=="Off") ? display.hidden : display.visible;
But which kind of script and event is required for button? I simply could not solve it out.
