Copy link to clipboard
Copied
Hello,
I have a script that will attach a completed form in an email, and include the user's name in the subject line. The problem I am having is that there is no space between the first and last name, which makes sense given the code:
cSubject: "Travel authorization form for" + this. getField("text1").valueAsString+this.getField("text2").valueAsString
How do I add a space in between the two fields (Text1 is first name and Text2 is last name)?
Copy link to clipboard
Copied
You need to add an empty string using empty space in between quotation marks (i.e. " ").
Change your current script like this:
cSubject: "Travel authorization form for " + this. getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString
Copy link to clipboard
Copied
You need to add an empty string using empty space in between quotation marks (i.e. " ").
Change your current script like this:
cSubject: "Travel authorization form for " + this. getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString
Copy link to clipboard
Copied
ls_rbls,
Thank you so much. As I was telling Try67, I used your template from another solution posted here to customize a script. Small world.
Ki
Copy link to clipboard
Copied
You're very welcome.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more