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

Forms from Acrobat to LiveCycle Designer issue

Lstar
Registered: Aug 18 2009
Posts: 13

I am very new at creating forms, so this could be a very simple issue but here it is: I have created a form in MS Word then converted it in Acrobat. I added 2 types of reset buttons: one to reset all and another to reset a selected set of fields. In Acrobat Forms for the selected set of cleared field, I selected the set of cleared fields by using the Button Properties under actions tab. I would like to use the LifeCycle Designer because the maintenance would be easier. How do I apply a select set of reset actions for a set of fields for this button in the LifeCycle Designer (version 8 Pro)?

Thx, Lstar

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You will have to create a button with a script, that specifies which fields has to be reseted.
Therefore you use the scripting method xfa.host.resetData()

Example 1:
xfa.host.resetData("xfa.form.form1.TextField1,xfa.form.form1.TextField2");
With this script, you can reset several specific objects to their default value.
The comma is to separate the single objects.

Example 2:
xfa.host.resetData();
With this command the whole form will be reseted to default.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Lstar
Registered: Aug 18 2009
Posts: 13
Thank you for your response, but I do not know much about coding. I use to do some coding in basic hundred years ago. :-) In Acrobat Form editing, the dialog box allowed you to select which field by the use of a check box under the action tab. Do I have to edit the XML in the LifeCycle Designer or is there a javascript view I need to use? Can you direct me to a good reference to get me started?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
There is a script editor built into LiveCycle Designer and LiveCycle Designer also has the 'Scriptig Reference' under the Menu's 'Help => Scripting Reference".This site also has some [url=http://www.acrobatusers.com/learning_center/eseminars_on_demand?page=1]eSeminars on Demand[/url] look for "Extending LiveCycle Forms with JavaScript and FormCalc" by Thom Parker, Using LiveCycle Designer by Jim Healy, or "Creating PDF Packages" by Tim Huff.

George Kaiser

Lstar
Registered: Aug 18 2009
Posts: 13
Thank you.