Hi All-
I have an extremely frustrating problem. I have designed a form in LiveCycle ES 8.2.1 for users to fill out and submit via xml. I would like to use Acrobat Pro 9.1.0 to track and collect responses from this form. When I test the original form, the submit button works perfectly and it opens my email client (Groupwise) attaches the xml and populates the To, Subject, and Body fields perfectly.
The problem comes when I try to use Acrobat to distribute and track the forms. It creates a filed called 'form_distributed' that adds a bunch of code that completely screws up my form submission. When the form_distributed is filled out, and the user clicks the submit button, Groupwise is invoked, but I get a 'Check Names' dialog box that states
[b]"Windows Messaging does not recognize "1. Double-click the attachment".[/b]
After I click cancel on that dialog box, the JavaScript Debugger shows:
[b]Exception in line 63 of function top_level, script XFA:form1[0]:p1[0]:Button1[0]:click
RaiseError: One of the specified recipients is not resolvable.
Doc.submitForm:63:XFA:form1[0]:p1[0]:Button1[0]:click
===> One of the specified recipients is not resolvable.[/b]
The distributed version has this extra code inserted
[b] < script contentType="application/x-javascript">//@@SUBMITURL "mailto:email [at] workplace [dot] com?subject=Submitting Completed Form&body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&ui=false"
[/b]
and further down....
[b]// submit the form
if (bContinue) {
var rawURL = "email [at] workplace [dot] com?subject=Submitting Completed Form&body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&ui=false";
var submitURL;
if (app.viewerVersion < 9.0)
submitURL = "mailto:" + rawURL;
else
submitURL = "mailto:" + escape(rawURL);
currentDoc.submitForm({
cURL: submitURL,
cSubmitAs: "PDF"
});
}
[/b]
Are these lines of code always inserted when the form is distributed?
How can I distribute and track these responses?
It seems to be reading
"email [at] workplace [dot] com?subject=Submitting Completed Form&body=Instructions to add this form to a responses file:\n"
as the first email address and then getting hung up on the body and interpreting it as an incomplete email address.
Any help would be greatly appreciated.
Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.