Support Topics Documentation Slack YouTube Blog

Input mask

Are there built in input masks for form fields. ie tel numbers. I can’t seem to see it on the front or backend. Hopefully i’m just missing it. I have the validation set to us phone number.

Thanks

Hello @tbc_guy

You can use the blocks from the RegExp section:


Or add a validator for the field value:

Sorry I guess, i didn’t explain myself properly. Right now the user types in a number (10 for ph number) and it displays as 8074569654. Not very clear if it is a phone number. I would like it to show as
(807)456-9654. Here is my code.
Thanks again. The forum is very fast at getting back to questions. Great job / great product all around.

the logic looks reasonable, however, I’d move it to the “On Key Down” event.