When someone submits a form with answers, I need the answers to be in the body of the text, rather than as an attachment. How do i get this to happen?
Scott
Views
Replies
Total Likes
I don't really understand the question, you can add form fields to your template and allow the user to fill those in. If you are trying to flow answers into a paragraph then you would have to do one of the following:
1) Have a separate template that you merge the answers into to create a static document or
2) Use floating fields in a dynamic template where the user has a field to enter their answers and then this answer is pushed into paragraph
Views
Replies
Total Likes
You can inject data into the string that gets sent to the email program, you don't have any control over formatting except for returns and that kind of thing.
Here are a couple of ways of doing it:
var strToAddress, strCCAddress, strSubject, strMessage
strToAddress = txtToAddress.rawValue;
strCCAddress = txtCCAddress.rawValue;
strSubject = txtSubject.rawValue;
strMessage = txtMessage.rawValue;
event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
You can use variables in the following as well:
var oDoc = event.target;
oDoc.mailDoc({
bUI: true,
cTo: "apstory@example.com",
cCC: "dpsmith@example.com",
cSubject: "The Latest News",
cMsg: "A.P., attached is my latest news story in PDF."
});
Views
Replies
Total Likes