Expand my Community achievements bar.

Submit a signed pdf via email

Avatar

Level 2

I am using livecycle 2 to create interactive forms.  The users will be working in Adobe Reader or Adobe Acrobat so I need this to work in both.

I have done this before, but the fields are not working properly and I am not quite sure how to fix it.  I used the generic button and wrote the following script in presubmit. 

F.P2.Button1::preSubmit:form - (JavaScript, client)

var strToAddress, strSubject

//Capture the values from the form fields.

strToAddress = txtToAddress.rawValue;

strSubject = txtSubject.rawValue;

event.target.submitForm({cURL:"mailto:"+ strToAddress + "&subject=" + strSubject + "&body=",cSubmitAs:"PDF",cCharset:"utf-8"});

In the two fields (strToAddress & strSubject), I entered in the information that I wanted in the Object, value, default line.  It seems to be combining some wierd combination of the default information from both fields into the To line and then using the file name as the subject line. 

Any suggestions?

0 Replies