nodes

Returns a list of all child objects of the current object.

Note: Because the form DOM is sparse, nodes only get generated when they are accessed or needed. Accessing the nodes property is not an accurate way to determine the children or properties of an object.
Note: This property is read only.

Syntax

Reference_Syntax.nodes

Values

Type

Values

Object

A list of XML Form Object Model objects.

Applies to

tree class class

Version

XFA 2.1

Examples

JavaScript

Subform1.nodes; // Single line example 
 
// This example displays the names of the children of Subform1 
var oNodes = this.nodes; 
var nodesLength = oNodes.length; 
 
for (var i = 0; i < nodesLength; i++) { 
    xfa.host.messageBox(oNodes.item(i).name) 
}

FormCalc

Subform1.nodes // Single line example 
 
// This example displays the names of the children of Subform1 
var oNodes = Subform1.nodes 
var nodesLength = oNodes.length; 
 
for (var i = 0; i < nodesLength; i++) { 
    xfa.host.messageBox(oNodes.item(i).name) 
}

// Ethnio survey code removed