These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Emailing Dynamic Forms

jenniferbunecke
Registered: Jul 29 2009
Posts: 35
Answered

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?

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
I would try to take the hide-script from the checkbox and put it into the layout:ready event of "Cover".

if (LockCheckbox.rawValue == 1){this.presence = "hidden";}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

jenniferbunecke
Registered: Jul 29 2009
Posts: 35
Figured it out. I had to copy the "change" javascripts on the conditional checkboxes and paste them into the "initialize" section. Works like a charm now.