stateless

Determines whether a script’s variables persist from one invocation to the next.

Syntax

Reference_Syntax.stateless = "0 | 1"

Values

Type

Values

String

  • 0 (default)

  • 1

The script’s variables do persist (it is stateful).

  • 1

The script’s variables do not persist (it is stateless).

Applies to

Model

Object

Form Model

script

Version

XFA 2.1

Examples

JavaScript

TextField1.resolveNode("#event.#script").stateless = "1";

FormCalc

TextField1.#event.#script.stateless = "1"

// Ethnio survey code removed