[FORMS] Force participants to answer all items
Dear kind people,
I set up a form to present a mood questionnaire to participants, but I'm looking at heaps of missing data because apparently, people missed several clicks (I assume because you have to hit the checkboxes very accurately for them to register).
My question is: what would be a good way to force people to fill in all items? My favourite solution would be to make the "Next"-button appear only after everything is filled out. To only activate the button would also work, but I would like the visual feedback, that people are not yet done on the page they're on right now.
Am I talking sense?
Thank you so much!
Best
Vincent
Comments
In the meantime, I found this post , which adresses almost exactly what I'm trying to do, even though I still struggle to implement it.
Two differences: I'm not using a multiple choice but a base form item (doubtful that this makes a difference, though). And I want more than one item per page, and I have no idea how the if-check has to look like.
The example code I'm trying to incorporate is this:
So, another couple hours in, I realize that there's a new function implemented for that. I just don't get it to work, though, I can't make sense of the manual. I tried pasting this into my forms but whenever I run it and come back to my form, it all has vanished again. Where do I have to put it, how can I pass functions to my forms?
Is there a MWE of the form validator I could use to get the drift? I'm at a bit of a loss...
Hi Vincent,
To use form validation, you need to implement your form using Python code, as described here:
It sounds like you've implemented your form with a
form_baseplugin, and tried to insert the Python code there (which doesn't work). Is that right?If so, I would first try to recreate your form in a Python
inline_script. Once you've done that, adding the validation is relatively straightforward.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Sebastiaan! Hooray!
Yes, that was absolutely correct, and I will try out the inline scripting later today. Thank you so much!
Like. A. Charm. You're the best, thank you so much.
One more thing: how do I go about formatting the form screen with inline script? I used the "_theme grey" color scheme earlier, which looked nice, and now it's all looking rather dull.
Hi Vincent,
form = Form(theme=u'plain')is the inline command to change the theme. To my knowledge, there are currently only two themes -- gray and plain.Hope this helps,
Eduard
Hey Eduard,
thank you very much for your reply. I've found that option, but what I don't understand is: when I build the questionnaire with the built-in form blocks, it was black font on white background (with the theme gray), when I call this same theme when building the questionnaire with python inline scripting, it's white font on black background. It's not a big issue, I can well use it that way, I'm just curious as to why is that and how could I change it.
All the best to you guys
Vincent
Hi Vincent,
In the general information section of your experiment (first or second item in the overview area), you can set the background and foreground color. I think setting the colors will also show in your form (but not sure).
Eduard
Eduard! Thank you so much, again.
Sometimes I get a bit embarrassed about what basic kind of questions I bug you guys with, I'm sorry.
Thank you so much for your support!