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

Forge Component
(31)
Published on 22 Apr (4 weeks ago) by Marcelo Ferreira
31 votes
Published on 22 Apr (4 weeks ago) by Marcelo Ferreira

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?

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

Solution