4 Replies Latest reply on Jun 2, 2011 12:17 PM by kintarito

    Validating a field has content before allowing user to move to next field

    wcendro1

      My previous Post will not allow me to unmark it as answered, so I am reposting.

       

      The script that try67 gave me works wonderfully.  The problem i am having now is that I have several required fields that are one right after another.  The script runs on the 'on Blur', displays the errors message, and then automatically goes to the next field and displays the error message for that field, so I am caught in a endless loop.

       

      Here is the script I am running:

       

      if(this.getField("Name").value=="")
           {
          this.getField("Name").setFocus();
          app.alert("This field must be complete. Please enter the Customer's Name");
           }