Conditional email sending

New Here ,
Apr 08, 2019

Copy link to clipboard

Copied

Hello -

I want to create a conditional script to send an email if a certain form field includes specific text. The form is already made to automatically be sent to a set array of emails when the user pushes the "Submit Form by Email" button, but I want to add a script on top of that that will submit the form additionally to another email address when there is specific information included in a specific field. Is there a way that I can do this? I'd really appreciate any help. Thank you!

TOPICS
Acrobat SDK and JavaScript, Windows

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Conditional email sending

New Here ,
Apr 08, 2019

Copy link to clipboard

Copied

Hello -

I want to create a conditional script to send an email if a certain form field includes specific text. The form is already made to automatically be sent to a set array of emails when the user pushes the "Submit Form by Email" button, but I want to add a script on top of that that will submit the form additionally to another email address when there is specific information included in a specific field. Is there a way that I can do this? I'd really appreciate any help. Thank you!

TOPICS
Acrobat SDK and JavaScript, Windows

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 08, 2019 0
try67 LATEST
Most Valuable Participant ,
Apr 08, 2019

Copy link to clipboard

Copied

Yes. For example, you can use something like this:

if (this.getField("Text1").valueAsString == "John Doe") this.mailDoc({cTo:"john.doe@gmail.com"});

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 08, 2019 0