Avatar

Level 9

I would like to be able to allow the person using the form to choose what email address the PDF form is emailed to. I read this post which sounds like what I want but I keep getting a Submit Cancelled error. The email does get generated and the form is attached as a PDF so that part works okay.

http://forums.adobe.com/message/4167414#4167414

This is the code I am using as I only need the To: address populated.

form1.Page1.Button1::preSubmit:form - (JavaScript, client)

var strToAddress

//Capture the values from the form fields.
strToAddress = txtToAddress.rawValue;

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