I want to change textbox, to allow only numbers in input. If I change type, work this only on mobile. When I press characters on keyboard, put char into. I want just ignore character, or better allow only: 0,1,2,3,4,5,6,7,8,9
Thank you for helping
Hi — Try something like this
Event Condition:
input_fieldname On text changed
Actions:
1) Set variable to input_fieldname.Text
2) input_fieldname Set text to RegexReplace(variable, Regex, Flags, Replace)
Develop games in your browser. Powerful, performant & highly capable.
+TextBox: On text changed -> TextBox: Set text to RegexReplace(TextBox.Text, "\D", "", "") [/code:1ux0xkow] That will remove any non-digit character from the textbox.
Wau. That work. Thank you a lot