KC wrote:
I am using JavaScript on an Acrobat form. the script stops at the
line "else if (f32.value == "")"shown below. I get the following
error message: SyntaxError: syntax error 133:(null) at line 134.
Can someone give me an idea of what needs to be corrected?
Thanks in advance for any help you can offer.
else
// Email form and data.
this.mailDoc(true, "re*********@whereiwork.com",
"", "", "ROP Request Form Submission");
else if (f32.value == "")
The syntax for an - if - statement (ECMA 262 3rd edition Section 12.5)
is:-
if ( Expression) Statement else Statement
- or -
if ( Expression ) Statement
- and because those - if - statements are statements they may be
inserted into the syntax of an - if - statement at the points where -
Statement - appears.
However, the syntax you have used is:-
if ( Expression) Statement else Statement else Statement
(with the final Statement being - if (f32.value == "") ... )
- and you cannot replace - Statement - in either of the - if - syntaxes
and get the form that you have used.
Richard.