getInvalidObjects

Returns a list of nodes contained within this subform (inclusive) that have a failed validation test.

Generates a list of all the invalid container objects, such as afield, exclusion group, or subform, contained within descendants of that subform. If the subform that this script method is called on is itself invalid, that subform is included in the returned list. The list is only generated on demand by recursively traversing the subform. The returned list is in document order.

The getInvalidObjects method does not return the list of mandatory fields until after the submit has fired. If the list of mandatory fields is required, the execValidate method must be called first.

Syntax

Reference_Syntax.getInvalidObjects()

Parameters

None

Returns

A list of invalid container objects in the order they exist on the form.

Applies to

Model

Object

Form Model

field

Version

XFA 2.9

// Ethnio survey code removed