isPropertySpecified

Checks if a specific property has been defined for this node.

Syntax

Reference_Syntax.isPropertySpecified( STRING param1 [, BOOLEAN param2 [, INTEGER param3 ] ] )

Parameters

param1

A valid string representing the name of the object property to search on.

param2 (Optional)

A Boolean value that indicates if inheritance from parent classes should be taken into consideration.

  • true | 1 (JavaScript) or 1 (FormCalc) (default)

  • Determines if this property is inherited from a parent class.

  • false | 0 (JavaScript) or 0 (FormCalc)

  • Determines if this property is defined for the current object, regardless of inheritance.

param3 (Optional)

An integer value specifying which occurrence of the property to examine. This parameter is only valid for those properties that can have multiple instances.

Returns

True if the property is specified and false if it is not specified.

Applies to

node class class

Version

XFA 2.1

Examples

JavaScript

TextField1.isPropertySpecified("ui");

FormCalc

TextField1.isPropertySpecified("ui")

// Ethnio survey code removed