[jQueryInputMask] How to extend logical digits?

[jQueryInputMask] How to extend logical digits?

  
Forge Component
(3)
Published on 23 Jan by João Melo
3 votes
Published on 23 Jan 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?


Thanks.