Forum Replies Created
-
AuthorPosts
-
AnnaParticipant
Hi,
yes, you are spot on. I tried it out now. If I press backspace I can input new text but overwriting the existing text does not work.
Best,
AnnaAnnaParticipantHi Jeremy,
when I open your link, enter into the age text field letters “AP”, letter-string combinations “2a”, special signs like “//” or spaces and try to click the button, then I get the error message (as intended). The error message disappears when I try to change the age but nothing happens to the input itself, i.e. AP, 2a, // or ” ” stay put despite my trying most keys on the keyboard. If it helps, I’m using Firefox version 86.0.1 (64-bit) on Fedora 32.
Either way, my workaround seems to do the job for this issue, which hopefully it’s unique to my setup.
Best,
AnnaAnnaParticipantHi again,
I “fixed” this issue by removing the offending input as the error message is displayed:
.wait( newFunction('dummy', ()=>true).test.is(true) // Age .and( getTextInput("age").test.text(/^\d+$/) .failure( newText('errorage', "Bitte tragen Sie Ihr Alter ein."), getTextInput("age").text(""))) )
Best,
Anna- This reply was modified 3 years, 1 month ago by Anna.
AnnaParticipantHi Jeremy and Kathy,
just a heads up about your code: if a participant enters a string instead of a number in the age input field (e.g. “AP” instead of “99”), they are shown the error message but they cannot correct their input to a number (or otherwise).
Best,
Anna -
AuthorPosts