NOT a dumb question at all. There is no “input mask” property of a field - so you can do it with a method attached to the “onDataChange” event of the field.
in 2.1.2 the format field also works on textfields (one line so not the textarea)
you can do this for example a format like:
###-####|555-1234
will give you an input field that only can have 7 numbers (you can’t type anything else) and has a default value of 555-1234
these masks are possible:
Character Description
Any valid number, uses Character.isDigit.
’ Escape character, used to escape any of the special formatting characters.
U Any character (Character.isLetter). All lowercase letters are mapped to upper case.
L Any character (Character.isLetter). All upper case letters are mapped to lower case.
A Any character or number (Character.isLetter or Character.isDigit)
? Any character (Character.isLetter).
Anything.
H Any hex character (0-9, a-f or A-F).
// EDIT: wrong version number feature from 2.1.2 >