Required fields in an interactive PDF form are displayed with a red border in PDF Studio.

When a form is submitted, PDF Studio will display an error message if any required field is empty. PDF Studio follows the PDF specifications which state that, if the required flag is set, the field must have a value at the time it is exported by a submit-form action.

Validation of required field when submitting a form
Validation of required field when submitting a form

To implement a different kind of validation – for instance to list the field names that are missing or to add specific validation on fields data – users can write their own Javascript in the submit button by adding a Javascript action under the “Actions” tab.