Restrict multiple special characters

Iam having a textbox in mobile application, it has to accept only single dot but it is allowing multiple dots to get typed..? how to restrict this scenario on onchange action? Guidance please

HI,

you should use this component. or this.

Regards,

Marcelo

I think you have the search_regex() function of "Text" Library . you have to put some pattern like this, in pattern input variable:

/^[a-z0-9]+$/gi

according with this post: https://stackoverflow.com/questions/756567/regular-expression-for-excluding-special-characters.

This will give you a boolean that indicates if your string only have alpha numeric characters.


Best Regards,

Nuno Pereira

Saravanan Santhanam wrote:

Iam having a textbox in mobile application, it has to accept only single dot but it is allowing multiple dots to get typed..? how to restrict this scenario on onchange action? Guidance please


Hi,

There's an forge component Restrict character mobile. You can refer that.

Refer the below link:

https://www.outsystems.com/forge/component-overview/5014/restrict-characters-mobile