text input field mask/filter not working

Widgets & Design

I am trying to add a mask or filter to text fields for a username that can not except any spaces and another regex for phone numbers. When i put these on the text input field and test, it will not let me enter anything into the text field. even if i remove the '$' at the end it still does not work. Any help would be much appreciated.

phone regex - ^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$

no space regex - ^[a-zA-Z0-9\-_$@*!]{3,30}$

What have you tried so far?

i have tried both these regex phone regex - ^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$, no space regex - ^[a-zA-Z0-9\-_$@*!]{3,30}$ on regex101 with javascript selected and both work fine there.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
1 reply