186
Views
1
Comments
Input Mask Mobile Component- Only alphanumeric characters
Question

Hello 

I am using the Input Mask Mobile component and I would like to know how to configure it to only allow alphanumeric (only letters and numbers) characters, if I select "****" it will allow special characters as well. I would also like to impose, in this input,  the use of capital letters, any suggestion on how to do it?  

UserImage.jpg
Hugo Jorge

Rita Araújo wrote:

Hello 

I am using the Input Mask Mobile component and I would like to know how to configure it to only allow alphanumeric (only letters and numbers) characters, if I select "****" it will allow special characters as well. I would also like to impose, in this input,  the use of capital letters, any suggestion on how to do it?  

Hello,

You can try to use regular expressions to make what you want. Use mask to limit max characters that you want to insert in Input and regex ^[A-Z][a-zA-Z0-9]+$ (something like this) to validate the input.

Use Mobile Utilities, this forge component have a regex_validator.
https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=1730

Hope this helps you. 


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