It’s been a week I have been stuck in a problem and the problem is that I have a input of Integer type. It is working properly but I want when a user type extra characters except number the input then value get reset and show a toast saying “Please enter a valid value”.
I am sharing a clip, so it will be easy for you to understand the problem.
If your input is a Number type (integer/decimal/currency/percentage), or even Text(numbers only) then it’s impossible for a user to enter any non-numerical character.
By the looks of it, your input is actually a Text input…
Is that intentional? (why would you want to allow users to enter non-numerical characters it the input value must be a number?). Why not just restrict the input to numerical characters only?