I started using OS and OSWeb very recently, sorry if I’m missing something obvious.
With colleagues of my lab, we’re trying to set up an online experiment for which we need custom forms with multiple Likert scales to rate speech stimuli.
The creation of a form using an inline_html item is quite straightforward, here is a very basic example with a single scale to keep the sample code short:
I wanted to do something like the code below which works fine in a HTML form (I made it as basic as possible for testing, usually I would rather use jQuery and onchange), but it gives an Application error saying that validate is undefined.
I finally found a workaround by copying the code of the js function on the onclick attribute of each input other than submit:
As you can see, it’s not a very convenient way to proceed, especially in the case of a more complex form with multiple inputs.
PS: Apologies for the embedded images, it's my 1st post here and I couldn't figure out how to include formatted code snippets