These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How do I create required fields in a form?

kbfusion
Registered: Mar 20 2008
Posts: 2

I want to create a form that has fields that need to be filled out before the form can be submitted. Is there a way to create the field so that if it has not been filled when they submit, that a message comes up telling them to fill in all of the fields and that it won't submit it until all the fields have been filled?

Thanks!

My Product Information:
Acrobat Pro 8.1.2, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
For Acrobat Forms created using Form Tool, you can set the "Required" propery on the "General" tab for the field. Although Acrobat does not directly process this item, see the JS Api, one can add additional JavaScript code to the button used for the submit script to test tha each field marked with the "requried" property is not set to the default property before the sumbit code is executed. This usually means have a variable that that tracks if there is any required field not comleted or creating an array and filling it with the name of any requried field not complteted.

George Kaiser