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

Form.execValidate() evaluates to false

Runolfr
Registered: Oct 1 2008
Posts: 119
Answered

I have a script on the preSubmit event of a submit button that begins as follows:

if (Form.execValidate() == true) {
\\ various tasks
}
endif;

Several controls on the form are defined as required, and the form won't submit if I don't fill them in.

However, even with all the required fields filled, the "various tasks" in the preSubmit script don't get executed, as if the result of the Form.execValidate() method returned "false".

This same method seems to be working in other forms, so I'm wondering what else might be causing the form to be evaluated as invalid.

Runolfr
Registered: Oct 1 2008
Posts: 119
Turned out to be a syntax error in the script.