I've created an interactive dynamic form that shows or hides subforms based on
a selection from a drop-down menu.
The drop-down menu has 10 "List Items" and each List Item has a corresponding subform.
Each subforms presence set to "Hidden (Exclude from Layout)."
if ("RMC-Guernsey-PLD DOT" == xfa.event.newText)
GU_ML.presence = "visible";
GU_ML.presence = "hidden";
GU_ML.rawValue = "";
This script is repeated 10 times, once for each list item and subform.
The form fields are locked via a digital signature and the form is submitted as a PDF using an e-mail submit button.
At this point everything looks fine.
The problem is when the form is re-opened. The subform made visible from the drop-down menu is no longer
visible, but is hidden and excluded from the layout.
How do I keep the subform visible?
On the form properties page under the Defaults Tab make sure that the option to preserve script changes is set to automatic and not manual.
Thanks.....I never would have thought to look under the form properties.