3 Replies Latest reply on Mar 29, 2012 12:01 PM by jay fresno

    Message for required field

    jay fresno Level 1

      I'm creating an Acrobat form (not LiveCycle) using Acrobat X on Windows. The form needs to be accessible, and I need to alert users when a required field is not filed out.

       

      I tried using this code in the Action, On Blur for the required field:

       

      f=getField (event.target.name)

      if (f.value.length==0)

      {

      f.setFocus()

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

      }

       

      While the code does bring up an alert message, I can't close the alert dialog, nor can I add I fill out the required field because I can't get past closing the dialog.

       

      Does anyone have a suggestion?