locale

Specifies the language, currency, and time/date formatting to use for the content of the object.

The locale affects the representation of data formatted, validated, or normalized by picture clauses. When this property is absent or empty, the default behavior is to inherit the parent object’s locale. If the outermost subform does not specify a locale, the default behavior derives from the ambient locale of the operating system. If the operating system does not supply a locale, en_US is used.

Syntax

Reference_Syntax.locale = "ambient | locale"

Values

Type

Values

String

  • ambient (default)

  • A valid locale name, for example en_US. For a complete list of valid locale values, refer to the IETF RFC 1766 and ISO 639/ISO 3166 specifications.

The application uses its own ambient locale.

  • A valid locale name, for example en_US. For a complete list of valid locale values, refer to the IETF RFC 1766 and ISO 639/ISO 3166 specifications.

Applies to

Version

XFA 2.1

Examples

JavaScript

TextField1.locale = "en_US";

FormCalc

TextField1.locale = "en_US"

// Ethnio survey code removed