Use submit button to trigger validation and prompt to save instead of submit action


i want add submit button trigger validation using built-in feature. work "forms validation" setting done on form properties. see snapshot below.

 

however, if validation successful, want prompt save dialogue box instead submitting form using line of code:

 

app.execmenuitem("saveas"); 

 

how possible?

 

 

tarek

hi there,

 

to need call execvalidate function built-in form using following :

var bovalidate = xfa.form.form1.execvalidate();

if (bovalidate){

     app.execmenuitem("saveas");

} else{

     app.alert("validation failed.");

}

hope help!



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"