Expand my Community achievements bar.

event before send by mail

Avatar

Level 3

Dear,

I have a form with a send button this one send a attached xml file.

Before sending the mail i need to test a field, if the field is empty in should not be abel to send le form by mail.

I dont find the right event to use for breaking action of the send button.

Thanks

5 Replies

Avatar

Level 10

preSubmit event is the best one to control the form validations.

//Check if all the mandatory fields are filled in or not
if(isMandatoryFieldMissed.value == "0"){
this.resolveNode("#event").submit.target = "Place your Submit URL in double quotes";

}
else{
xfa.host.messageBox("One or more of the required fields were missing data before submitting.");       
}

Submit.jpg

Thanks

Srini

Avatar

Level 10

Thank you.. If you feel your issue is resolved then mark the thread as Answered so that it will be moved to Closed queue..

Thanks

Srini

Avatar

Level 3

it try it and after i will close !

Avatar

Level 3

Do you avec any idea for setting the xml file name attached when we use à send button ?

Thanks