Skip to content

How could I pause the trial if participants choose wrong items in survey? #3173

Closed Answered by Tongzhao9417
Tongzhao9417 asked this question in Q&A
Discussion options

You must be logged in to vote

Aha, I found a solution again and I will share it for future reference: If you, like me, need participants to answer comprehension tests and cannot proceed with the experiment if there are errors in the test, then you can try Looping timelines. Specifically, I put the variables of the timeline into an export loop and query data.accuracy in the loop_function. If false is included in this accuracy array, then Return true and use alert to inform the participant which question has an error. Here are some examples:

export const comprehension_survey_results = {
    timeline:[comprehension_survey],
    loop_function:function(data){
        let accuracy = data.trials[0].accuracy
        let answe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tongzhao9417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant