Object-Level Scripting Support

This section lists only those scripting objects that are
available for HTML forms and (deprecated) Guides, along with any
scripting properties and methods that each object supports for those
output formats. For a complete, alphabetic list of scripting properties
and methods, and their availability in HTML forms and Guides, see Scripting Properties and Scripting Methods.

Note: Scripting properties and methods listed as Not
applicable do not have any logical meaning within the specified
output format. For example, Guides do not contain a concept of pages,
so properties or methods related to information about form pages
do not apply. These properties and methods will fail gracefully
and will not generate errors or return exceptions.

xfa

The xfa object corresponds to the following Designer scripting
syntax:

xfa.*

Properties

Scripting property

Supported in HTML

Supported in Guides

className

no

yes

Methods

Scripting method

Supported in HTML

Supported in Guides

resolveNode

yes

yes

resolveNodes

yes

yes

data

The data object corresponds to the following Designer scripting
syntax:

xfa.data.*

Properties

None

Methods

Scripting method

Supported in HTML

Supported in Guides

resolveNode

no

yes

resolveNodes

no

yes

saveXML

no

yes

To save the
root level data, use the following syntax:

var originalData = xfa.data.saveXML();

datasets

The data object corresponds to the following Designer scripting
syntax:

xfa.data.datasets.*

Properties

None

Methods

Scripting method

Supported in HTML

Supported in Guides

loadXML

no

yes

The optional parameters on this
method are not supported in Guides.

This
method is supported only at the root level. You cannot load data
at a subform level.

To save the root level data, use the
following syntax:

var originalData
= xfa.data.saveXML();

To later reload the data, use the following
syntax:

xfa.datasets.loadXML(originalData);

resolveNode

no

yes

resolveNodes

no

yes

eventpseudomodel

The eventpseudomodel object corresponds to the following
Designer scripting syntax:

xfa.event.*

Properties

Scripting property

Supported in HTML

Supported in Guides

change

no

yes

className

no

yes

name

no

yes

newText

no

yes

Methods

None

hostpseudomodel

The hostpseudomodel object corresponds to the following
Designer scripting syntax:

xfa.host.*

Properties

Scripting property

Supported in HTML

Supported in Guides

calculationsEnabled

yes

yes

className

no

yes

currentPage

yes

Not applicable

name

yes

yes

numPages

yes

Not applicable

validationsEnabled

yes

yes

Methods

Scripting method

Supported in HTML

Supported in Guides

gotoURL

yes

no

messageBox

yes

yes

pageDown

yes

no

pageUp

yes

no

print

no

no

resetData

yes

yes

setFocus

yes

no

form

The form object corresponds to the following Designer scripting
syntax: