Copy link to clipboard
Copied
I am new to acrobat dc. I have several check boxes all with different names that I want to trigger the cursor to move back to a text field and change it to "required"
for instance if Check box "Corporation" or "Partnership" or "L.L.C"is checked, the fields NameRow1,TitleRow1,PhoneRow1,EMailRow1 all become "required" and the form cannot be completed without at least row one being filled out.
Please help me.
I am new to acrobat, and to javascript
You can't force a user to complete a form before saving/closing/printing. If a text field that's marked as required is blank when a form is submitted ("Submit a form" action or submitForm JavaScript), the submit won't take place.
You can use JavaScript in various ways to check for blank required fields and alert the user before saving/closing/printing, but you can't prevent these actions. If you provide more details about the specific behavior you want, we can probably help.
Copy link to clipboard
Copied
You can't force a user to complete a form before saving/closing/printing. If a text field that's marked as required is blank when a form is submitted ("Submit a form" action or submitForm JavaScript), the submit won't take place.
You can use JavaScript in various ways to check for blank required fields and alert the user before saving/closing/printing, but you can't prevent these actions. If you provide more details about the specific behavior you want, we can probably help.
Copy link to clipboard
Copied
Thank you.
I want the above mentioned check boxes to trigger the text fields to have a red border or other attention getting feature so they are not forgotten. Is that possible? I know it cannot be guaranteed but would like to at least the reminder if possible.
Copy link to clipboard
Copied
While it's true you can't prevent the file from being printed/saved, you can force it to print blank, ie with all of the form fields empty.
I've developed a tool that allows you to easily set that up: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving
Find more inspiration, events, and resources on the new Adobe Community
Explore Now