1266
Views
3
Comments
Restrict multiple special characters
Question

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

2019-05-22 11-30-09
Marcelo Ferreira

HI,

you should use this component. or this.

Regards,

Marcelo

2020-03-24 00-01-07
Nuno Gonçalo Pereira

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

2018-11-21 17-31-38
Priya Khade

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

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