[solved] form base problem
Dear community,
I'm working on a microexpression experiment and have a question about the form base. The participants have to watch different emotions and have to choose the right answer. So I created the following form:
set margins "50;100;50;100"
set rows "1;1;1;1;1;1;1"
set spacing "25"
set description "A generic form plug-in"
set cols "1;1"
widget 1 0 1 1 button var="fearful" text="Angst"
widget 1 1 1 1 button var="surprised" text="Ueberraschung"
widget 1 2 1 1 button var="angry" text="Aerger"
widget 1 3 1 1 button var="disgusted" text="Ekel"
widget 1 4 1 1 button var="contemptuous" text="Verachtung"
widget 1 5 1 1 button var="sad" text="Trauer"
widget 1 6 1 1 button var="happy" text="Freude"
right before the form the participants see a sketchpad:
set duration "150"
set description "Displays stimuli"
draw image -497 -309 "Rafd090_[Emotion].png" scale=0.604 center=0 show_if="always"
At the moment my logger file looks like this:
My goal is to have only one variable in the logger file that shows if the participant chose the right answer or not. Do you have any ideas how I could get this done? Any help is appreciated :-)
Best wishes
Daniel

Comments
Hi Daniel,
You would need to add a simple
inline_scriptafter the form, that recodes the variables so that there is a single variable that contains the name of the emotion that has been selected. For example like so:Alternatively, you could use checkbox widgets instead of buttons. Then you wouldn't need to recode at all:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
works perfect! Many thanks!
Best wishes
Daniel