OSWeb error: Unexpected token. Possible form issue
Hi All,
I'm stumped by an error in OSWeb and I'm wondering if it could be a form_text_input issue.
I've developed an experiment that utilises forms to collect participant responses to different sounds and images, as well as to collect demographic information.
The experiment runs smoothly on OpenSesame locally. The experimental trials also run in the browser in OSWeb (1.4.14.0). The experiment stops, however, at the demographics section and gives the error "Uncaught Script parsing error: Unexpected token".
I couldn't glean anything more from the java script as I'm really a novice, but this loop is the only loop with form_text_input objects so I'm wondering if it could be related, though I think they should be supported as fullscreen is set to no.
I've attached a version of the experiment with only the demographics section as this is where the problem is.
Any thoughts would be much appreciated!
Lillian
Comments
Hi @lillianow,
I had a quick look at your task. I'm not entirely sure why, but it seems that Javascript is struggling with your use of a loop inside another loop. I'm not sure why you actually put the questionnaire items in a loop to start with (since your loop contain only one trial and that trial contains all the forms). You could move all the forms out of these loops. In fact, moving them to the first loop and deleted the nested loop solves the problem.
Hope this helps,
Fabrice.