resetData

Resets the fields to their default values within a document.

Syntax

Reference_Syntax.resetData([ STRING param ])

Parameters

param

(Optional)

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.

Returns

Empty

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.host.resetData("xfa.form.form1.TextField1,xfa.form.form1.TextField2");

FormCalc

xfa.host.resetData("xfa.form.form1.TextField1,xfa.form.form1.TextField2")

// Ethnio survey code removed