Tick or text box in a trial


Author
Message
nashby
nashby
Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)Guru (8.8K reputation)
Group: Forum Members
Posts: 78, Visits: 159
I have a set of tasks where people need to choose between options, but on each trial they can tick a box to make the choice count for real or not. It looks like checkbox and dropdown can only be used in surveys not trials and I dont see how to make a trial like i need as a surveypage (see below, maybe its not possible). Any ideas on something I could use that would function like a tickbox within a trial?

<trial twopzero>
/ stimulusframes = [1= intaskzero, LabelAa, LabelBa, quitwithoutpay]
/ validresponse = (LabelAa, LabelBa, quitwithoutpay)
/ inputdevice = mouse
/ ontrialend = [values.choice += 1]
/ ontrialbegin = [values.gamble = 1; values.prob = rand(1,100);]
/ ontrialend = [if(trial.twopzero.response == "quitwithoutpay") script.abort();]

/ ontrialend = [ if (trial.twopzero.response == "LabelA" && values.side <= 50 && values.prob <= 33) {values.outcome=(53); values.spicked = 0; values.picked = 1; text.o1a.item.1 = "53 pts";}]
/ ontrialend = [ if (trial.twopzero.response == "LabelA" && values.side <= 50 && values.prob > 33) {values.outcome=(27); values.spicked = 0; values.picked = 1; text.o1a.item.1 = "27 pts";}]
/ ontrialend = [ if (trial.twopzero.response == "LabelB" && values.side > 50 && values.prob <= 33) {values.outcome=(53); values.spicked = 1; values.picked = 1; text.o2a.item.1 = "53 pts";}]
/ ontrialend = [ if (trial.twopzero.response == "LabelB" && values.side > 50 && values.prob > 33) {values.outcome=(27); values.spicked = 1; values.picked = 1; text.o2a.item.1 = "27 pts";}]

/ ontrialend = [ if (trial.twopzero.response == "LabelA" && values.side > 50) {values.outcome=(0); values.spicked = 0; values.picked = 0; text.o1a.item.1 = "0 pts";}]
/ ontrialend = [ if (trial.twopzero.response == "LabelB" && values.side <= 50) {values.outcome=(0); values.spicked = 1; values.picked = 0; text.o2a.item.1 = "0 pts";}]
/ ontrialend = [values.tots += values.outcome]
</trial>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search