I'm creating a PDF form that has a checkbox "Other" with two lines underneath. I want to require the fields be filled in, but only if they check "other." I need help!
Thanks in advance,
Copy link to clipboard
If you want to make fields required when checkbox is checked, you can use this code as Mouse UP event of checkbox:
this.getField("Field1").required = event.target.value != "Off" ? true : false;
this.getField("Field2").required = event.target.value != "Off" ? true : false;
Change field names to your field names.
Thank you, that worked beautifully. I feel pretty good being able to follow your code!