Copy link to clipboard
Copied
Hello everyone,
I want to create a textbox that will be filled everytime the user writes an answer.
The first option of make this text box to accept only the total number of words that fit the answer. After that, the keyboard will not responde anymore.
Another alternative (I think this is more advanced) would be to track each of the letters
the user inputs and in case it is a wrong one, the keyboard will not respond, until the right
choice of letters is made.
Can you please guide me towards achieving this goal? I would appreciate receiving your kind instructions/tips on that.
In that case this should work for you, you will see how to change word on your own:
if(event.change) {
if(event.value == "")
event.rc = /^[l]+$/.test(event.change);
else if(event.value == "l")
event.rc = /^[e]+$/.test(event.change);
else if(event.value == "le")
event.rc = /^[t]+$/.test(event.change);
else if(event.value == "let")
event.rc = /^[t]+$/.test(event.change);
else if(event.value == "lett")
event.rc = /^[u]+$/.test(event.change);
else if(event.value == "lettu")
event.rc = /^[c]+$/.test(event.change)
I decided to use three radio buttons, since the idea is to lay out all the options at once.
Copy link to clipboard
Copied
I decided to use three radio buttons, since the idea is to lay out all the options at once.
Copy link to clipboard
Copied
Good idea! Thank you for sharing that solution.