[Custom Input Masks] How do I ensure that numbers entered must start with 6, 8, or 9?
Question
Forge component by Sara Gonçalves

mvp_badge
MVP
Solution

Hi,

To accomplish that you need to use regex and that is only possible with the MaskTest.

Use the below configuration to accomplish that:

Edit: For you to be able to copy "{ regex: ""[6|8|9]+[0-9]*"", placeholder: """" }"


Regards,

Marcelo

Champion

YS Yeo,

You already received multiple answers in your other topic: https://www.outsystems.com/forums/discussion/47335/validation-numbers-entered-must-start-with-6-8-or-9/

Please do not spam so much, I understand you might not know much about development yet, so perhaps you can check out a few more guides or google a bit before you ask here to be spoonfed the answer?

mvp_badge
MVP
Solution

Hi,

To accomplish that you need to use regex and that is only possible with the MaskTest.

Use the below configuration to accomplish that:

Edit: For you to be able to copy "{ regex: ""[6|8|9]+[0-9]*"", placeholder: """" }"


Regards,

Marcelo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.