[jQueryInputMask] How to extend logical digits?
Web icon
Forge component by João Melo

Sorry if this is a noob question, I have just added this web block to Outsystems v10 web app and I'm wondering how to define your own logical digits besides A (Numbers and Letters) and S (A-Za-z) ?

For example, how do I do this for Y pattern?

$('.your-field').mask('AA/SS/YYYY', {'translation': {
                                        A: {pattern: /[A-Za-z0-9]/},
                                        S: {pattern: /[A-Za-z]/},
                                        Y: {pattern: /[0-9]/}

Thank you in advance.

I'm sorry, I'm afraid I did get what you need. Could you elaborate?


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