Hi!
I created a checkbox that when clicked, reveals hidden text for certain users.
I want the content required for those users only.
The submit button will not allow users to send the form without completing ALL fields, however.
How can I make the hidden fields "required" but eliminate its restrictions to submit?
Codes:
The Checkbox triggers these fields:
var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("a").display = nHide;
this.getField("b").display = nHide;
this.getField("name").display = nHide;
SUBMIT:
"At least one required field was empty. Please fill in . . .
What you can do, though, is create your own submit procedure (using the submitForm method) and place before it an if-statement that checks if the check-box is indeed checked (if I understood correctly what you want to achieve).
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com