Require correct response


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Yes. radiobuttons and dropdowns have response properties just like any other element. You can sum those up and perform checks using /ontrialend logic, branching, <expressions> or the like.

<block myblock>
/ trials = [1=mypage]
</block>

<surveypage mypage>
/ questions = [1=a; 2=b]
/ branch = [if (dropdown.a.response+dropdown.b.response!=4) surveypage.mypage]
</surveypage>

<dropdown a>
/ options = ("0", "1", "2", "3", "4")
</dropdown>

<dropdown b>
/ options = ("0", "1", "2", "3", "4")
</dropdown>
Edited 9 Years Ago by Dave
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
Hi again. I am trying to make a task where participants must distribute 16 points over 16 options such that they use all 16 points. They can do this by putting 8 on one option and 8 on another, or 16 on one, or 1 on each, etc...

Is there a way to sum the values of textboxes/dropdown to make sure the totals entered are valid before the participant cant move on?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search