Skip to main content
Version: 7.9

Formatted Text Field

Component Palette Icon

This specialized text field is used for alphanumeric text input that must match some specific pattern or needs to be formatted in a specific way. It operates in two modes:

Formatted Mask

In this mode, input is automatically formatted and restricted based on a format mask. For example, a format mask like: (###) ###-#### will allow the entry of a 10-digit US phone number. The formatting characters are automatically inserted if the user does not type them in. Any other characters are restricted. The following characters may be used in a formatted mask pattern:

SymbolDescription
#Any valid number, Such as 0-9.
'Escape character, used to escape any of the special formatting characters.
UAny letter. All lowercase letters will be mapped to upper case automatically.
LAny letter. All upper case letters will be mapped to lower case automatically.
AAny letter or number.
?Any letter, case is preserved.
*Anything.
HAny hex character (0-9, a-f or A-F).

Regular Expression

In this mode, input is validated against a regular expression. A regular expression is a special string that defines a set of allowed strings. Any input that matches the given regular expression is allowed, and input that doesn't match, is restricted. And yes, while powerful, regular expressions are decidedly difficult to decipher.

Properties

NameDescriptionProperty TypeScriptingCategory
Allows Invalid TextAllows Invalid text to Commitboolean.allowsInvalidBehavior
AntialiasDraw with antialias on? Makes text smootherboolean.antialiasAppearance
Background ColorThe background color of the component.Color.backgroundAppearance
BorderThe border surrounding this component. NOTE that the border is unaffected by rotation.Border.borderCommon
Commit While TypingCommits valid text while user is typingboolean.commitsOnValidEditBehavior
Committed ValueCommitted Text ValueString.committedValueData
CursorThe mouse cursor to use when hovering over this component.int.cursorCodeCommon
Data QualityThe data quality code for any tag bindings on this component.int.dataQualityData
EnabledIf disabled, a component cannot be used.boolean.componentEnabledCommon
Focus Lost BehaviorControls how a transaction can be committedint.focusLostBehaviorBehavior
FontFont of text on this componentFont.fontAppearance
Foreground ColorThe foreground color of the component.Color.foregroundAppearance
Formatted Mask PatternFormatted Mask Validation PatternString.formattedMaskPatternBehavior
Horizontal AlignmentDetermines the alignment of the label's contents along the X axis.int.horizontalAlignmentLayout
Mouseover TextThe text that is displayed in the tooltip which pops up on mouseover of this component.String.toolTipTextCommon
NameThe name of this component.String.nameCommon
Overwrites TextOverwrites text while typingboolean.overwriteModeBehavior
Reg Ex PatternRegular Expression Validation PatternString.validationPatternBehavior
StylesContains the component's stylesDataset.stylesAppearance
TextContents of this Text FieldString.textData
Touchscreen ModeControls when this input component responds if touchscreen mode is enabled.int.touchscreenModeBehavior
Validation ModeSelects regular expression or mask-driven field validation.int.validationModeBehavior
VisibleIf disabled, the component will be hidden.boolean.visibleCommon

Scripting

Scripting Functions

This component does not have scripting functions associated with it.

Extension Functions

This component does not have extension functions associated with it.

Event Handlers

Event handlers allow you to run a script based off specific triggers. See the full list of available event handlers on the Component Events page

Customizers

Examples

Formatted Mask

ExampleDescription
##U-####/UUA product code with a specifc format, like 28E-8213/AR
0xHHHHA hex digit, automatically prepends "0x" on the front. e.g. "0x82FF"
#UUU###A California license plate, eg. 4ABC123

Regular Expression

ExampleDescription
\p{Upper}\p{Lower}, \p{Upper}\p{Lower}A name, formatted such as Smith, John
\d{3}-\d{2}-\d{4}A US social security number, like 123-45-6789
\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}A network IPv4 address, like 67.82.120.116
^[a-f0-9A-F]{6}$A six-digit hexadecimal number

Phone Number Format

Property NameValue
Validation ModeFormatted Mask
Formatted Mask Pattern(###) ###-####