InquisitJK
|
|
Group: Forum Members
Posts: 7,
Visits: 64
|
Hi all, Is there a way to save all the mouse key clicks or responses participants choose for one question, even though the radio button is set to /required = true and has a correct response element?
As of right now participants can select any response and then press continue and then the question highlights red if they respond incorrectly, and they can only continue once they answer it correctly. However, in the data file the program only stores the correct response and not the previous wrong responses (if there were any of course).
Here is the code as of right now:
<surveypage Questions> / caption = "Please answer the following questions" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false </surveypage>
<radiobuttons Question1> / caption="Who was the first president of the United States:" / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true / validresponse = ("George Washington","Abraham Lincoln","Thomas Jefferson") / correctresponse = ("George Washington") </radiobuttons>
<radiobuttons Question2> / caption="How many states are there?" / options=("50", "32", "64") / required=true / validresponse = ("50, 32, 64") / correctresponse = ("50") </radiobuttons>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xHi all, Is there a way to save all the mouse key clicks or responses participants choose for one question, even though the radio button is set to /required = true and has a correct response element? As of right now participants can select any response and then press continue and then the question highlights red if they respond incorrectly, and they can only continue once they answer it correctly. However, in the data file the program only stores the correct response and not the previous wrong responses (if there were any of course). Here is the code as of right now: <surveypage Questions> / caption = "Please answer the following questions" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true / validresponse = ("George Washington","Abraham Lincoln","Thomas Jefferson") / correctresponse = ("George Washington") </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / options=("50", "32", "64") / required=true / validresponse = ("50, 32, 64") / correctresponse = ("50") </radiobuttons> You'd have to do something like this: <values> / tryagain = "" </values> <surveypage Questions> / caption = "Please answer the following questions" / subcaption = "<%values.tryagain%>" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false / branch = [ if (radiobuttons.Question1.response != "George Washington" || radiobuttons.Question2.response != "50") { values.tryagain = "You answered at least one question incorrectly. Please try again."; surveypage.Questions; }; ] </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / options=("50", "32", "64") / required=true </radiobuttons> <block example> / trials = [1=Questions] </block>
|
|
|
InquisitJK
|
|
Group: Forum Members
Posts: 7,
Visits: 64
|
+x+xHi all, Is there a way to save all the mouse key clicks or responses participants choose for one question, even though the radio button is set to /required = true and has a correct response element? As of right now participants can select any response and then press continue and then the question highlights red if they respond incorrectly, and they can only continue once they answer it correctly. However, in the data file the program only stores the correct response and not the previous wrong responses (if there were any of course). Here is the code as of right now: <surveypage Questions> / caption = "Please answer the following questions" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true / validresponse = ("George Washington","Abraham Lincoln","Thomas Jefferson") / correctresponse = ("George Washington") </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / options=("50", "32", "64") / required=true / validresponse = ("50, 32, 64") / correctresponse = ("50") </radiobuttons> You'd have to do something like this: <values> / tryagain = "" </values> <surveypage Questions> / caption = "Please answer the following questions" / subcaption = "<%values.tryagain%>" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false / branch = [ if (radiobuttons.Question1.response != "George Washington" || radiobuttons.Question2.response != "50") { values.tryagain = "You answered at least one question incorrectly. Please try again."; surveypage.Questions; }; ] </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / options=("50", "32", "64") / required=true </radiobuttons> <block example> / trials = [1=Questions] </block> Hi Dave, Is there anyway to specify the actual question they got wrong? I fear the subjects will forget what they have pressed and continuously be stuck on this survey page if there are more than 2 questions. Best, Paig
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xHi Dave, Is there anyway to specify the actual question they got wrong? I fear the subjects will forget what they have pressed and continuously be stuck on this survey page if there are more than 2 questions. Best, Paig Yeah, sure that's possible in much the same way. <values> / q1_def = " " / q2_def = " " </values> <surveypage Questions> / caption = "Please answer the following questions" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false / ontrialend = [ if (radiobuttons.Question1.response != "George Washington") { radiobuttons.Question1.subcaption = "(answered incorrectly, try again)"; values.q1_def = " "; } else { radiobuttons.Question1.subcaption = " "; values.q1_def = "George Washington"; }; if (radiobuttons.Question2.response != "50") { radiobuttons.Question2.subcaption = "(answered incorrectly, try again)"; values.q2_def = " "; } else { radiobuttons.Question2.subcaption = " "; values.q2_def = "50"; }; ] / branch = [ if (radiobuttons.Question1.response != "George Washington" || radiobuttons.Question2.response != "50") { surveypage.Questions; }; ] </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / subcaption = " " / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true / defaultresponse = values.q1_def </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / subcaption = " " / options=("50", "32", "64") / required=true / defaultresponse = values.q2_def </radiobuttons> <block example> / trials = [1=Questions] </block>
|
|
|
InquisitJK
|
|
Group: Forum Members
Posts: 7,
Visits: 64
|
+x+xHi Dave, Is there anyway to specify the actual question they got wrong? I fear the subjects will forget what they have pressed and continuously be stuck on this survey page if there are more than 2 questions. Best, Paig Yeah, sure that's possible in much the same way. <values> / q1_def = " " / q2_def = " " </values> <surveypage Questions> / caption = "Please answer the following questions" / questions = [1 = Question1, Question2] / responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0) / showpagenumbers = false / navigationbuttonfontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1) / showbackbutton=false / showquestionnumbers = false / ontrialend = [ if (radiobuttons.Question1.response != "George Washington") { radiobuttons.Question1.subcaption = "(answered incorrectly, try again)"; values.q1_def = " "; } else { radiobuttons.Question1.subcaption = " "; values.q1_def = "George Washington"; }; if (radiobuttons.Question2.response != "50") { radiobuttons.Question2.subcaption = "(answered incorrectly, try again)"; values.q2_def = " "; } else { radiobuttons.Question2.subcaption = " "; values.q2_def = "50"; }; ] / branch = [ if (radiobuttons.Question1.response != "George Washington" || radiobuttons.Question2.response != "50") { surveypage.Questions; }; ] </surveypage> <radiobuttons Question1> / caption="Who was the first president of the United States:" / subcaption = " " / options=("George Washington","Abraham Lincoln","Thomas Jefferson") / required=true / defaultresponse = values.q1_def </radiobuttons> <radiobuttons Question2> / caption="How many states are there?" / subcaption = " " / options=("50", "32", "64") / required=true / defaultresponse = values.q2_def </radiobuttons> <block example> / trials = [1=Questions] </block> Awesome!! Thanks!
|
|
|