leadDigits

Specifies the maximum number of digits (inclusively) preceding the decimal point to capture and store.

Syntax

Reference_Syntax.leadDigits = "0 | integer"

Values

Type

Values

String

  • 0 (default)

  • A valid string representing any integer value.

Applies to

Model

Object

Form Model

decimal

Version

XFA 2.1

Examples

For these examples, the numeric field data type should be set to decimal.

JavaScript

NumericField1.resolveNode("value.#decimal").leadDigits = "2";

FormCalc

NumericField1.value.#decimal.leadDigits = "2"

// Ethnio survey code removed