hScrollPolicy

Specifies whether a field can scroll horizontally.

Note: This property does not apply to Text Fields that can expand to accommodate data or text.

Syntax

Reference_Syntax.hScrollPolicy = "auto | on | off"

Values

Type

Values

String

  • auto (default)

  • on

  • off

Single-line fields scroll horizontally and multi-line fields scroll vertically (displaying a vertical scroll bar when necessary).

  • on

  • off

Horizontal scroll bars appear regardless of whether the text or data overflows the boundaries of the field.

  • off

Restricts the user from entering characters in the field beyond what can physically fit within the field width. Note that this restriction does not apply to data with the field.

Version

XFA 2.5

Examples

JavaScript

TextField1.resolveNode("ui.#textEdit").hScrollPolicy = "off";

FormCalc

TextField1.ui.#textEdit.hScrollPolicy = "off"

// Ethnio survey code removed