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

Email subject line enhancement

Community Beginner ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

I’m using the following for a Button’s mouse down procedure, and it works fine placing the Name in the subject section preparing to send an email.

this.mailDoc({cTo: "info@testdata.org", cSubject: this.getField("Name").valueAsString});

I’d like to add text before the Name such as “Records Request Submission”

Can you help?

Views

254

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 , Oct 04, 2023 Oct 04, 2023

You can place it in the script:

 

 

this.mailDoc({cTo: "info@testdata.org", cSubject: "Records Request Submission " + this.getField("Name").valueAsString});

 

Or place it as the default value in a (hidden) text field:

 

var sSubject = this.getField("fieldName").valueAsString + " " + this.getField("Name").valueAsString;
this.mailDoc({cTo: "info@testdata.org", cSubject: sSubject});

 

 

Votes

Translate

Translate
Community Expert ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

is this an acrobat question?

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 ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

Yes, Adobe Acrobat Pro

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 ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post if it helps you get responses.



<"moved from using the community">

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 ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

You can place it in the script:

 

 

this.mailDoc({cTo: "info@testdata.org", cSubject: "Records Request Submission " + this.getField("Name").valueAsString});

 

Or place it as the default value in a (hidden) text field:

 

var sSubject = this.getField("fieldName").valueAsString + " " + this.getField("Name").valueAsString;
this.mailDoc({cTo: "info@testdata.org", cSubject: sSubject});

 

 

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 ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

LATEST

That worked!

Thank you so much for your help!

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