Prevent going back to previous survey box on the same screen #1484
-
Hi, I have an experiment where people are given three boxes on the screen, and they have to type in their responses in a certain order. I would really appreciate any advice. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @belginunal, to do this I think you'd need a function that is called whenever the textbox focus changes from being in focus (i.e. currently accepting input) to not being in focus anymore. You can do this by adding a |
Beta Was this translation helpful? Give feedback.
Hi @belginunal, to do this I think you'd need a function that is called whenever the textbox focus changes from being in focus (i.e. currently accepting input) to not being in focus anymore. You can do this by adding a
onblur
event listener to all of the text boxes. In that function, you can disable the textbox so that the input can't be changed anymore. This page also has a nice example of the onfocus and onblur events.