[open] Set Button Widget response?
Hello,
Is it possible to set the button widget response to anything other than "yes" for "clicked," and "no" for "not clicked"? For example, in the code below, it would be awesome to get it to recognize the var as correct or not, as defined in the preceding loop. Similar to how a sketchpad can accept several keyboard responses and log whether or not the participant pressed the correct key.
set margins "50;50;50;50"
set rows "1;5;1"
set spacing "25"
set cols "1;1;1;1;1;1"
widget 2 0 2 1 label text="Text"
widget 1 1 4 1 image path="[Pic].jpg"
widget 0 2 1 1 button center="yes" text="Text1" frame="yes" var="choice1_resp"
widget 1 2 1 1 button center="yes" text="Text2" frame="yes" var="choice2_resp"
widget 2 2 1 1 button center="yes" text="Text3" frame="yes" var="choice3_resp"
widget 3 2 1 1 button center="yes" text="Text4" frame="yes" var="choice4_resp"
widget 4 2 1 1 button center="yes" text="Text5" frame="yes" var="choice5_resp"
widget 5 2 1 1 button center="yes" text="Text6" frame="yes" var="choice6_resp"
Thanks in advance for the help!
Comments
No, the way that form responses are coded is fixed. However, you can recode your responses afterwards, so that they are easier to log, or contain information about correctness etc. You can see an example of how this is done in this discussion:
It's not exactly what you want to do, but the idea is pretty similar.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!