Copy link to clipboard
Copied
I created an action button to sent a custom email - how do I add a second line to the body of email?
Here is the script:
var date = new Date();
this.mailDoc({
cTo: "",
cCc: "SCMAnalytics@nspower.ca",
cSubject: "STOREKEEPER: Please complete Part #2 of Capital Return Request form (see attached)",
cMsg: "\r\r LAK SUPERVISOR: Please add Assigned Storekeeper email addy to this email before sending"
});
Use \n to go to new line.
Copy link to clipboard
Copied
Use \n to go to new line.
Copy link to clipboard
Copied
I don't know where to put it tho...
var date = new Date();
this.mailDoc({
cTo: "",
cCc: "SCMAnalytics@nspower.ca",
cSubject: "STOREKEEPER: Please complete Part #2 of Capital Return Request form (see attached)",
cMsg: "\r\r LAK SUPERVISOR: Please add Assigned Storekeeper email addy to this email before sending
/n STOREKEEPER: Please fill-in fields in part #2 of attached form and press button #2 when complete for further processing"
});
Copy link to clipboard
Copied
NVM... lol
Used wrong 'slash'!!
Thank you!
Copy link to clipboard
Copied
It's \n not /n.
You can use it like this:
"\r\r LAK SUPERVISOR: Please add Assigned Storekeeper email addy to this email before sending\n STOREKEEPER: Please fill-in fields in part #2 of attached form and press button #2 when complete for further processing"
Copy link to clipboard
Copied
If the attached form has an "email" field, how do I add that in so it's auto filled? I tried this but it doesn't work:
var date = new Date();
this.mailDoc({
cTo: = this.getField(“email”).value,
cCc: "SCMAnalytics@nspower.ca",
cSubject: "STOREKEEPER: Please complete Part #2 of Capital Return Request form (see attached)",
cMsg: "\r\r LAK SUPERVISOR: Please add Assigned Storekeeper email addy to this email before sending
n\ STOREKEEPER: Please fill-in fields in part #2 of attached form and press button #2 when complete for further processing"
});
Copy link to clipboard
Copied
Use \n not n\
Copy link to clipboard
Copied
Got it - but how about the email field?
Copy link to clipboard
Copied
Remove the red =
Copy link to clipboard
Copied
Just the "=" sign? Tried this and go error
var date = new Date();
this.mailDoc({
cTo: this.getField(“email”).value,
cCc: "SCMAnalytics@nspower.ca",
cSubject: "STOREKEEPER: Please complete Part #2 of Capital Return Request form (see attached)",
cMsg: "\r\r LAK SUPERVISOR: Please add Assigned Storekeeper email addy to this email before sending
\n STOREKEEPER: Please fill-in fields in part #2 of attached form and press button #2 when complete for further processing"
});
Copy link to clipboard
Copied
Use " not “
Copy link to clipboard
Copied
Sorry - I don't understand - use "not" where?
Copy link to clipboard
Copied
I mean the double quotes.
Copy link to clipboard
Copied
Try like this:
cTo: this.getField("email").value,
Copy link to clipboard
Copied
Yay!!!! This did it - thanks so much 🙂