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

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
JavaScript , PDF forms

Views

784

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

Community Expert , 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",

});

Votes

Translate

Translate
Community Expert ,
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",

});

Votes

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?

Votes

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 Expert ,
May 18, 2021 May 18, 2021

Copy link to clipboard

Copied

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

Votes

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!

Votes

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