I am a Beginner and want to know how to make my RESET FORM button skip a field when it resets the form. I can see how to do it in Acrobat, since a nice list is available on the Actions tab. I just uncheck the field(s) I do not want to reset. But how do I do it in LiveCycle 9?
xfa.host.resetData("xfa.form.form1.myField1,xfa.form.form1.MyField2");
notice that the full hierarchy path is required for this function. This is called the SOM path, and you can find it at the top of the "Scripting" window when you click on a field in the design window.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script