Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Help - Validation fails stop script

$
0
0

Hi guys,

 

I need help with some code.

 

I have created a form which users a normal button as a submit for e-mail. The reason I have done this is because the button pulls out info from the form and inserts it into the e-mail. All works so far. The form contains fields which must be filled in, however because i am using a normal button when it is clicked it seems to bypass the validation process.

 

I have inserted - if (topmostSubform.execValidate()) at the top of my script and added in the form properties turned on form validation. If I click the submit button now I get a warning message and the required fields turn blue. However, when I click ok on the pop up message the script runs anyway and the outlook draft box appears with the e-mail.

 

I would like to ask - how do i stop the script running if validation fails?


Viewing all articles
Browse latest Browse all 5571

Trending Articles