I have an input (Input1) where you can only enter one character at a time. I have a client action which runs OnClick that sets the value of Input1's variable (V1) to "".
The desired behaviour is that you click on Input1 and the current character disappears, then you type a new character to replace it, which updates V1. This is all working.
The problem is that if you type in the same character that was just removed, then the input stops working. So if the input is displaying "3" (and thus, V1 = "3"), then you click on it so that it disappears, then type "3" again, it breaks. From that point on, the input is stuck displaying "3" no matter how many times you click on it or attempt to type something else.
From debugging, it seems that when I typed "3" the second time, the widget Input1 did not update V1, even though on the screen you can see it typed in. After that it remains stuck, not able to render anything other than "3" despite me typing different characters in.
I've uploaded a clip of the behaviour in action.
Any ideas?
Hi @Andy Davis ,
Is this what you are looking for? I’m attaching the OML with the solution for your reference.Test AppRegardsDeepa
Thanks for your reply. I got to the bottom of it: it turns out the glitch was caused by an Input Mask I was using (to ensure only numbers could be entered into the input). The behaviour vanishes if you don't use this.