Copy link to clipboard
Copied
I'm trying to make a pdf form that I want to send to some people, have them fill in the form and send it back. I want to make sure that ALL mandatory fields are filled in before they save the form.
Have been searching the internet, but cannot find a satisfying answer.
It would be unbelievable if this is not possible (currently downloaded a trial version, but will surely not buy if this is not solved).
Thanks,
Herman
Copy link to clipboard
Copied
The required fields are only validated when the file is submitted. If that's what you're doing anyway, then what does it matter if they are filled-in when someone saves the file? They won't be able to submit it unless they fill them in...
If you really want to do it, I've developed a tool just for this purpose: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving
It's not possible to prevent someone from saving the file entirely, but using this tool you can show an error message and force the saved file to be blank.
Copy link to clipboard
Copied
You will need to write a custom JavaScript action. You should decide how you want this work. One could have a field that show the status of completing the form or hide a submit button until all the required field have been completed. You will also have to decide how you are going detect incomplete form fields.
There have been many posts about this in this forum.
I would suggest that you test if a field has been completed or not by comparing a field's value to that field's defaultValue. If the values are equal the field is not complete and if the values are different then the field has been completed.
Copy link to clipboard
Copied
The required fields are only validated when the file is submitted. If that's what you're doing anyway, then what does it matter if they are filled-in when someone saves the file? They won't be able to submit it unless they fill them in...
If you really want to do it, I've developed a tool just for this purpose: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving
It's not possible to prevent someone from saving the file entirely, but using this tool you can show an error message and force the saved file to be blank.
Copy link to clipboard
Copied
He didnt say the field was blank, if there is a mistake and needs to be edited, thats the question,( I wonder how he would know it was a mistake?)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now