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?
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});
Copy link to clipboard
Copied
is this an acrobat question?
Copy link to clipboard
Copied
Yes, Adobe Acrobat Pro
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">
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});
Copy link to clipboard
Copied
That worked!
Thank you so much for your help!