0 Replies Latest reply on Jan 4, 2017 10:40 AM by nelson25

    Reset fields in a subform ?

    nelson25 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.