Skip to content

Masked Input

The Masked Input component formats user input as they type (e.g. phone as (555) 123-4567). You define a mask pattern; the component enforces it and can output a clean value (e.g. digits only) for storage.

PropertyTypeDescriptionExample
maskTextThe pattern the input must follow. Placeholders: 0 (digit), 9 (optional digit), # (digit or space), L (letter), A (letter or digit).(000) 000-0000
valueTextCurrent text (input/output). Bind to a column or variable.(555) 123-4567
placeholderTextShown when the field is empty.Enter phone #
placeholderCharTextCharacter used for unfilled positions in the mask (optional)._
  • Canvas: Set Value to a data source (e.g. ThisItem.Phone). Use MaskedInput1.Value in formulas to get the current value (often stored as digits only, depending on the component). Example: Patch(Contacts, ThisItem, { Phone: MaskedInput1.Value }).
  • Model-Driven: Add the control to a Single line of text column; bind the column to the component’s Value.
// Phone mask
MaskedInput1.Mask = "(000) 000-0000"
MaskedInput1.Value = ThisItem.Phone
// Save on submit
Patch(Contacts, ThisItem, { Phone: MaskedInput1.Value })
Use caseMask example
US phone(000) 000-0000
Zip code00000 or 00000-0000
Date00/00/0000
Alphanumeric IDAAAA-0000