Skip to main content
janet819
Participant
May 31, 2017
Question

I want to create required fields.

  • May 31, 2017
  • 3 replies
  • 795 views

I want to create required fields. I would like an alert to pop up when a required field has not been filled in. Cannot save form without filling in the required fields.

Please provide easy to follow directions.

Thanks!

This topic has been closed for replies.

3 replies

Joel Geraci
Community Expert
Community Expert
June 1, 2017

You can fire off a script that will run when the document is about to close, when the document is about to save, and when the document was saved. However, you cannot prevent these actions from happening based on the results of that code. Can you explain how the patient gets the form back to you? Email, submit button etc..

janet819
janet819Author
Participant
June 1, 2017

The form is uploaded to a folder on a shared drive. This form will be filled out by medical personnel to keep track of treatments that a patient receives. There a few fields that are required and I would like to facilitate the best possible workflow. Filling out these particular fields is essential in ensuring that the treatment is on the right patient, therefore requiring name, ID, DOB, signatures is important. I would like the end user to be alerted before closing the form that there are required fields that have to be filled out.

Thanks for your help

Joel Geraci
Community Expert
Community Expert
June 1, 2017

In that case, try67 has a good solution. See above.

janet819
janet819Author
Participant
May 31, 2017

This is a form that follows chemotherapy regimen. Very specific to each patient. I would like the end user to have some required fields, i.e. DOB, Name, Research ID# etc., but if those fields are not filled in then when hitting the "Save" or "Save As" option, an alert will pop up stating required fields to be filled out before saving - something to that effect.

try67
Community Expert
Community Expert
June 1, 2017

I've developed a tool that allows you to set it up very easily. You can find it here: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving

try67
Community Expert
Community Expert
May 31, 2017

It's not possible to prevent the file from being saved entirely. You can display an error message or even force the fields in the saved file to be blank, but that's a bit extreme.