Anna

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Filled TextInput #6788
    Anna
    Participant

    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,
    Anna

    in reply to: Filled TextInput #6786
    Anna
    Participant

    Hi 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,
    Anna

    in reply to: Filled TextInput #6781
    Anna
    Participant

    Hi 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.
    in reply to: Filled TextInput #6780
    Anna
    Participant

    Hi 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

Viewing 4 posts - 1 through 4 (of 4 total)