presence

Specifies an object’s visibility.

Syntax

Reference_Syntax.presence = "visible | invisible | hidden | inactive"

Values

Type

Values

String

  • visible (default)

  • The object is visible.

  • invisible

  • The object is transparent. Although invisible, the object still takes up space.

  • hidden

  • The object is hidden. The form does not display the object and the object does not take up space on the form’s layout.

  • inactive

  • Applies only to objects that represent containers: field, exclGroup, subform. For all other objects the inactive state should be treated the same as hidden. The container participates in the data merge process. Associated calculations and validations within the container must not fire. All event processing associated with the container must not occur. The rendering of the container must be the same as for the hidden state.

  • This value is available only for XFA 2.9 and newer processors. Older processors treat presence="inactive" as presence="visible".

Version

XFA 2.1

Examples

JavaScript

TextField1.presence = "hidden";

FormCalc

TextField1.presence = "hidden"

// Ethnio survey code removed