Field Masks

An input mask refers to a string expression, defined by a developer, that constrains user input. It can be said to be a template, or set format that entered data must conform to.

Mask Legend

Character

Description

#

Any digit

A

Any capital letter

a

Any small letter

N

Any capital alphanumeric character

n

Any small alphanumeric character

X

Any special symbol (-!$%^&*()_+|~=`{}[]:";'<>?,./) or space

Examples

Type

Mask

credit-card

#### - #### - #### - ####

date-with-time

##/##/#### ##:##

phone

(###) ### - ####

social

###-##-####

time

##:##

time-with-seconds

##:##:##

Output Parameters

Just add the following as an output parameter to a node which is asking for a user input where a mask is required.

Will force the UI to accept a phone number
inputMask = (###) ### - ####

You can also override the help text that is shown in the input field.

Output Parameter

inputHelpText = Enter a phone number

Last updated