Skip to main content

How to enforce Required Fields in a PDF form

Article # 3015334 - Page views: 1824

How to enforce Required Fields in a PDF form


Required fields can be defined in the Field Properties > General menu. It is possible to further enforce these fields to prevent users from leaving fields blank with the implementation of JavaScript.


  1. Open the PDF form
  2. Right-click on the form field > click on Properties > click General
  3. Select Required
  4. Click on Actions
  5. Under Select Trigger, select On Blur
  6. Select Run a JavaScript under Select Action
  7. Insert the following text:

f = getField(

if (f.value.length == 0)



    //Optional Message - Comment out the next line to remove

    app.alert("This field is required. Please enter a value.")


    8.  Click OK > Close

Note: Nuance Communications, Inc. provides above information "as is."

  • Was this article helpful?