Click here to Skip to main content
15,890,845 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
OriginalGriff1-Jun-17 1:16
mveOriginalGriff1-Jun-17 1:16 
QuestionExport canvas.js chart to pdf and excel Pin
prog.sidra30-May-17 7:51
prog.sidra30-May-17 7:51 
QuestionRe: Export canvas.js chart to pdf and excel Pin
ZurdoDev30-May-17 8:10
professionalZurdoDev30-May-17 8:10 
QuestionJavaScript to Store GridView Text box value before PostBack Pin
VinKot29-May-17 20:27
VinKot29-May-17 20:27 
QuestionRe: JavaScript to Store GridView Text box value before PostBack Pin
ZurdoDev30-May-17 8:23
professionalZurdoDev30-May-17 8:23 
QuestionTrouble working with php generated inventory Pin
hexcypher24-May-17 11:40
hexcypher24-May-17 11:40 
AnswerRe: Trouble working with php generated inventory Pin
ZurdoDev30-May-17 8:15
professionalZurdoDev30-May-17 8:15 
Questionthis.submitForm - Help with Custom Subject Line Pin
Member 1322073224-May-17 9:40
Member 1322073224-May-17 9:40 
Hi all,

I am trying to execute javascript in a PDF that will allow the form to be submitted via email with a subject line that will pull a value from a field in the form. I am able to get the email portion to work, but I have not been able to customize the subject line to pull from the field. Below is the base script I am using to send the email without the customized subject line:

JavaScript
this.submitForm({

		cURL: "mailto:aamos@lrrc.com?subject=TSC Form&body=",

		cSubmitAs: "PDF"

	});


The field I am wanting to pull from is labeled "Name". Below was one of my attempts, all of which have not worked.

Failed Script:

JavaScript
this.submitForm({

		var Name = this.getField("Name").value;

       		cURL: "mailto:aamos@lrrc.com?subject=TSC Form (Name)&body= ) ",

        	cSubmitAs: "PDF"

	});


Can someone point me in the right direction or help me with where I went wrong in the script? I am new to this and glad I was able to execute the first script successfully but I feel I am in over my head with the customization.

Thanks in advance for your assistance.

AA
AnswerRe: this.submitForm - Help with Custom Subject Line Pin
F-ES Sitecore24-May-17 22:17
professionalF-ES Sitecore24-May-17 22:17 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
Member 1322073225-May-17 6:02
Member 1322073225-May-17 6:02 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
F-ES Sitecore25-May-17 6:07
professionalF-ES Sitecore25-May-17 6:07 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
Member 1322073225-May-17 6:51
Member 1322073225-May-17 6:51 
Questionjson array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
LOKENDRA YADAV23-May-17 1:33
LOKENDRA YADAV23-May-17 1:33 
RantRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
Richard Deeming23-May-17 1:42
mveRichard Deeming23-May-17 1:42 
GeneralRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
LOKENDRA YADAV23-May-17 3:59
LOKENDRA YADAV23-May-17 3:59 
RantRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
Richard Deeming23-May-17 4:12
mveRichard Deeming23-May-17 4:12 
Questionjson object result not showing in jsp?? Pin
LOKENDRA YADAV22-May-17 17:15
LOKENDRA YADAV22-May-17 17:15 
Answeri also tried with this code Pin
LOKENDRA YADAV22-May-17 17:47
LOKENDRA YADAV22-May-17 17:47 
GeneralRe: i also tried with this code Pin
Richard MacCutchan22-May-17 21:57
mveRichard MacCutchan22-May-17 21:57 
Generaljson array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
LOKENDRA YADAV23-May-17 1:14
LOKENDRA YADAV23-May-17 1:14 
GeneralRe: i also tried with this code Pin
LOKENDRA YADAV23-May-17 1:36
LOKENDRA YADAV23-May-17 1:36 
GeneralRe: i also tried with this code Pin
Richard MacCutchan23-May-17 3:10
mveRichard MacCutchan23-May-17 3:10 
AnswerRe: json object result not showing in jsp?? Pin
Nathan Minier23-May-17 1:00
professionalNathan Minier23-May-17 1:00 
GeneralRe: json object result not showing in jsp?? Pin
LOKENDRA YADAV23-May-17 1:31
LOKENDRA YADAV23-May-17 1:31 
QuestionMerging 2 different JSON objects Pin
Farhad Eft21-May-17 21:43
Farhad Eft21-May-17 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.