I am new to LiveCycle. I have created a PDF with 2 pages and it contains 70+ fields (Textfields, drop down, radio buttons, check boxes etc) . I created a reset form button with a click event and when I click it, it resets the entire form. I want to exclude 5 fields from belng cleared. How can I do that?
I have browsed all the forum topics on this and tried this script. ( Posting only few fields but the original script contains all fields)
xfa.host.resetData ("xfa.form.form1.DateField1,xfa.form.form1.TextField2,xfa.form.form1.TextField3,xfa .form.form1.TextField5");
There are 70+ fields and I have entered all these fields excluding 5 fields which I do not wanted to be cleared. But it clears the whole form.
I tried xfa.$host.resetData() too.
I figured out how to do it.
The script should be xfa.form.topmostsubform.page1.textfield and it worked.
All the params that you insert in xfa.form.resetData(); is all the fields you want to reset data...