[Custom Input Masks] How do I ensure that numbers entered must start with 6, 8, or 9?

Forge Component
Published on 23 Jul (13 days ago) by Huarlem Lima
44 votes
Published on 23 Jul (13 days ago) by Huarlem Lima

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?



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: """" }"