Avatar

Level 1

Hello,

I've googled this one pretty carefully and have found similar issues but never a solution I could get to fix the behaviour.

I am using LiveCycle Designer ES (8.2) and have created a simple form. The goal is to use some of the collected information to modify the recipient, subject and body of the email so I am using a regular button, with Control Type = Submit (with the 'Submit To Url' textbox empty). I have coded the preSubmit event to parse the various fields and build the "mailto:" string.

In the preview tab, clicking the button will launch the email client (Outlook) and will properly set the email fields (To, Subject, Body). Clicking send will successfully send the PDF to the receipient. Outlook closes, then it happens, the dreaded "Submit Cancelled" dialog which I just cannot shake.

The last 2 lines in my preSubmit event are:

var cEmailURL = "mailto:" + cToAddr + "?subject=" + cSubLine + "&body=" + cBody;
event.target.submitForm({cURL:cEmailURL ,cSubmitAs:"PDF",cCharset:"utf-8"});

where, as stated above, all variables are initialised and have valid values. I don't have any code in any other event.

Is there something I need to do to inform the PDF that I have handled the submit myself?

Thanks in advance for any thoughts ..