Acrobat User Community

How to reset some form fields without resetting all with Acrobat 7

By Lori DeFurioAugust 23, 2006

Is it possible to create a reset button within your PDF form that only resets "some" but not all of the fields?

Since there are two types of PDF forms — forms created with the Acrobat tools, and forms created with Adobe LiveCycle Designer — we'll give two examples that show how this can be done.

Acrobat forms:

  • Select the action “Reset a form,” and then select the individual fields to be reset in the Reset a Form dialog box.
  • In Figure 1, the form has three fields, but the button only resets the field “Name.”


Figure 1: From the Reset a Form dialog box select only the fields that should be reset.
See larger image

LiveCycle forms:

  • In order to reset individual fields, you must add some JavaScript to the button object.
  • On the mouseUp or Click event, add xfa.host.resetData("[field name]") For example, if you look at Figure 2, to reset the field “Name,” you would add xfa.host.resetData("F.P1.Name") that explicitly identifies the field as part of Form “F,” page “P1,” field “Name.”


Figure 2: Add JavaScript to the reset button to specify which fields to reset.
See larger image