Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Reset fields in a subform ?

nelson25
Level 1
Level 1

I want to reset all fields within a subform to their default values.

I am calling the resetData method with the name of a subform as a parameter to achieve this.

Example:  xfa.host.resetData("xfa.form.form1.subform1");

Is this usage correct, as the Scripting reference for resetData method says it takes field names as parameter.

A valid string listing either the names or the equivalent reference syntax expressions of the fields to reset. The list entries are delimited by the “,” (comma) character. If the string is not present or empty, all the fields in the form are reset to their default value.

Link to Scripting Reference : Adobe LiveCycle ES4 * resetData

I am using Adobe Workbench version 6 and LiveCycle ES 4.

0 Replies