Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Use Dropdown value in pdf form as email subject line

Community Beginner ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

Hi,
very new to writing javascripts etc. i have the below script; to send the pdf form as an attachment to an email and copy in another. Currently the subject line is "CIS Return Review" but i would like to change this to be the export value of a dropwdown field is this possible? if so how should i amend my script?

 

this.submitForm({

    cURL: "mailto:example@example.com?cc=example2@example.com&subject=CIS Return Review",

    cSubmitAs: "PDF",

});

TOPICS
Comment review and collaborate PDF, JavaScript, PDF forms

Views

438

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

correct answers 1 Correct answer

Adobe Community Professional , May 18, 2021 May 18, 2021
Try like this: this.submitForm({ cURL: "mailto:example@example.com?cc=example2@example.com&subject="+this.getField('Dropdown').valueAsString, cSubmitAs: "PDF", });

Likes

Translate

Translate
Adobe Community Professional ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

Try like this:

this.submitForm({

cURL: "mailto:example@example.com?cc=example2@example.com&subject="+this.getField('Dropdown').valueAsString,

cSubmitAs: "PDF",

});

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
community guidelines
Community Beginner ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

Thanks,
the button now no longer seems to produce the email at all?

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
community guidelines
Adobe Community Professional ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

Check the JS Console (Ctrl+J) for error messages.

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
community guidelines
Community Beginner ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

LATEST

ignore me this worked! i had changed the name of my dropdown box all sorted now! thanks for the speedy reply!

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