I need for the a textfield title to automatically populate in the subject line of the email button
What code goes in sub = ?
var sub
sub =
var ebody
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Its probably just as easy to use one single normal button with the following
var sSubject = CTitle.rawValue;
var sBody = <SomeField>;
event.target.submitForm({
cURL: "mailto: Kat.Art.ctr@mdd.mil;?cc=Don.Bough.ctr@mdd.mil,SPCOHSCITSupportTeam@mdd.mil;&subject=" + sSubject + "&body=" + sBody,
bEmpty: true,
cSubmitAs: "PDF",
cCharset: "utf-8"
});
use ? for the first parameter and & for each subsequent ones in mailto
Views
Replies
Total Likes
I created two buttons - one named "Real Email Button"(submit) and one named "Submit Button (regular)"
Real Email button has the addresses listed and the "Submit As" set to PDF:
Submit Button has the following code:
Button2.event__click.submit.target
= "mailto:Kat.Art.ctr@mdd.mil,?cc=Don.Bough.ctr@mdd.mil; SPCOHSCITSupportTeam@mdd.mil?subject= " +
CTitle.rawValue;
Button2.execEvent("click");
I would like the textfield title (CTitle) to automatically populate in the subject line - what is missing in my code?
Thanks
Views
Replies
Total Likes
Its probably just as easy to use one single normal button with the following
var sSubject = CTitle.rawValue;
var sBody = <SomeField>;
event.target.submitForm({
cURL: "mailto: Kat.Art.ctr@mdd.mil;?cc=Don.Bough.ctr@mdd.mil,SPCOHSCITSupportTeam@mdd.mil;&subject=" + sSubject + "&body=" + sBody,
bEmpty: true,
cSubmitAs: "PDF",
cCharset: "utf-8"
});
use ? for the first parameter and & for each subsequent ones in mailto
Views
Replies
Total Likes
Thank you sooooo much!!!!!
I have been messing with this form for 2 hrs!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies