access

Controls user access to the contents of a container object, such as a subform.

Syntax

Reference_Syntax.access = "open | protected | readOnly | nonInteractive"

Values

Type

Values

String

open (default)

Allows updating of a container’s contents and navigation into and out of the container without restriction. In interactive forms, you can modify the container’s content and tab or otherwise navigate into it. The container produces events.

protected 

The processing application prevents the user from making any direct changes to the container’s content. Indirect changes such as calculations can occur. The container does not participate in the tabbing sequence, though an application may allow the selection of text for clipboard copying. Protected containers do not generate any events.

readOnly 

The application does not allow a user to make direct changes to the container's content, but indirect changes such as calculations can occur. The container participates in the tabbing sequence and allows users to view the content. The user can select the container's content for clipboard copying. The container generates a subset of events (those not associated with the user making direct changes to the content).

nonInteractive 

The application allows the container’s contents to be loaded from the document, but not updated interactively. Calculations are performed at load time but the container’s contents are not subsequently recalculated. The container’s contents cannot be modified by scripts or web service invocations.

Applies to

Version

XFA 2.1

Examples

JavaScript

TextField1.access = "readOnly";

FormCalc

TextField1.access = "readOnly"

// Ethnio survey code removed