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

Email subject line enhancement

Community Beginner ,
Oct 04, 2023 Oct 04, 2023

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?

712
Translate
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
1 ACCEPTED SOLUTION
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});

 

 


Acrobate du PDF, InDesigner et Photoshoptographe

View solution in original post

Translate
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

is this an acrobat question?

Translate
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

Yes, Adobe Acrobat Pro

Translate
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

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">
Translate
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

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});

 

 


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
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
LATEST

That worked!

Thank you so much for your help!

Translate
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