I have created a form where a processor would fill out the first page (series of text fields and checkboxes.) Based on the input from page 1, the form creates a customer-facing statement on page 2. I have a "lock" checkbox that hides the first page so the client can't see the input page. Within an email button, I have a simple java script that saves the document, then emails the customer-facing form to the client. My problem is, when it's emailed, page 1 reappears, and the form resorts to the original state (things that should be visible are hidden and vise versa.)
Email "click" javascript: (located on a button)
app.execMenuItem("Save");
event.target.submitForm({cURL:"mailto:"+form1.Cover.Cov.AppEmail.rawValue+"?subject=test&body=pdf attached",cSubmitAs:"PDF",cCharset:"utf-8"});
Lock "change" script: (located on a checkbox)
if (this.rawValue==1)
form1.Cover.presence="hidden";
Any suggestions on how I can email the dynamic form properly?
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs