Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Adobe Form JavaScript

New Here ,
Feb 13, 2025 Feb 13, 2025

Copy link to clipboard

Copied

Can someone help me figure out a javascript for my form?

 

I have a submit button on my adobe form, but I am trying to figure out the script to change the body of the email that is populated once the person filling the form out clicks submit. 

 

I found this script on a forum, but I cant get it to work. 

var cToAddr = "maria@titan.net";

var cSubLine = "Dielectric Testing Information";

var cBody = "Please note, we have changes to our testing preferences.";

 

So I would like to have the email sent to myself (maria@titan.net), the subject line to say "Dielectric Testing Information", and then the body of the email to say "Please note, we have changes to our testing preferences."

 

Any help is much appriciated!!

TOPICS
How to , JavaScript , PDF forms

Views

80
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
community guidelines
Community Expert ,
Feb 13, 2025 Feb 13, 2025

Copy link to clipboard

Copied

Do you want the form emailed?  Use this:

this.mailDoc({cTo:"maria@titan.net", cSubject: "Dielectric Testing Information",  cMsg:"Please note, we have changes to our testing preferences."});

Votes

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
community guidelines
New Here ,
Feb 13, 2025 Feb 13, 2025

Copy link to clipboard

Copied

Yes, I would like for it to open up a new email and automatically attach the full PDF once the submit button is clicked. 

Votes

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
community guidelines
Community Expert ,
Feb 13, 2025 Feb 13, 2025

Copy link to clipboard

Copied

Use the script I provided.

Votes

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
community guidelines
Community Expert ,
Feb 13, 2025 Feb 13, 2025

Copy link to clipboard

Copied

LATEST

For future reference:

https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
community guidelines