commitKey

Describes how the current value of a form field was set by the user.

Syntax

Reference_Syntax.commitKey = "0 | 1 | 2 | 3"

Values

Type

Values

Integer

  • 0 (default)

  • 1

  • 2

  • 3

The value was not set (for example, if the user presses the escape key prior to the form field losing focus).

  • 1

  • 2

  • 3

The value is set when a user left-clicks outside the field.

  • 2

  • 3

The value is set when a user presses the enter key.

  • 3

The value is set when a user tabs to a new field.

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.event.commitKey = "2";

FormCalc

xfa.event.commitKey = "2"

// Ethnio survey code removed