Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Untdeterminated string constant

Avatar

Level 2

I try this script from assure dynamics (http://www.assuredynamics.com/wp-content/uploads/2011/06/Assure-Dynamics-Validate-form-on-preSave-ev...)

if (form1.execValidate() == false)

{

xfa.host.messageBox("You have not completed the mandatory fields. Please return to the

form and complete all fields marked with a *. \n\nThank you!", "Form

is incomplete", 0, 0);

}

But I get this warning

Untdeterminated string constant

0 Replies

Avatar

Level 10

The error occurs, when you add line breaks ti the script.

Write your message into one line to fix the problem.

if (form1.execValidate() == false) {

          xfa.host.messageBox("You have not completed the mandatory fields. Please return to the form and complete all fields marked with a *. \n\nThank you!", "Form is incomplete", 0, 0);

}