Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Abort eMail-Sending

Avatar

Level 1

Hello,

I placed an "eMail-Send_Button" in my document and woud like to do some checks (in scripting with JavaScript)) before creating an eMail. If there are errors I want to abort the creation of the eMail. Is it possible? How?

Regards,

Ole.

3 Replies

Avatar

Level 3

Hi Ole,

You can try using with exceptions in Javascript. 

Regards,

Jayakar

Avatar

Level 10

Hi Ole,

Steve Walker has a two-button example here: Re: Validate Instance, which works on the basis that the button the user sees does the validation and if this passes the script "click" the hidden email submit button. Paul Geurette also has an example here: Re: PDF form - email subject line = field

I have examples for versions of Acrobat/Reader above and below v9. http://www.assuredynamics.com/index.php/code-solutions/email-solutions/

Hope these help,

Niall

Assure Dynamics

Avatar

Level 1

Hello all,

that works! Thank's a lot for your help!

Ole.