Solved
Embedding Wason Rule Discovery Test into Qualtrics Survey
I am attempting to embed the Wason Rule Discovery Test into a Qualtrics survey. I have the following code that I have been trying to work with, but I am having no luck.
<block wasonblock>
/ trials = [1=enter_sequence]
</block>
<surveypage enter_sequence>
/ caption = "We’ve chosen a rule that some sequences of three numbers obey — and some do not.
Your job is to guess what the rule is.
We’ll start by telling you that the sequence 2, 4, 8 obeys the rule.
2 4 8 obeys the rule
Enter a number sequence in the boxes below, and we’ll tell you whether it satisfies the rule or not.
You can test as many sequences as you want."
/ questions = [1=n1; 2=n2; 3=n3]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "CHECK"
/ navigationbuttonsize = (20%, 5%)
/ nextbuttonposition = (40%, 60%)
/ branch = [if (textbox.n1.response < textbox.n2.response && textbox.n2.response < textbox.n3.response) surveypage.correctpage
else surveypage.errorpage]
</surveypage>
<textbox n1>
/ textboxsize = (20%, 5%)
/ mask = integer
/ position = (15%, 45%)
</textbox>
<textbox n2>
/ textboxsize = (20%, 5%)
/ mask = integer
/ position = (40%, 45%)
</textbox>
<textbox n3>
/ textboxsize = (20%, 5%)
/ mask = integer
/ position = (65%, 45%)
</textbox>
<surveypage correctpage>
/ caption = "Correct!
The sequence
<%textbox.n1.response%> <%textbox.n2.response%> <%textbox.n3.response%>
obeys the rule."
/ questions = [1=solve]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "NEXT"
/ navigationbuttonsize = (20%, 5%)
/ nextbuttonposition = (40%, 60%)
/ branch = [if (radiobuttons.solve.response == "1") surveypage.enter_rule
else surveypage.enter_sequence]
</surveypage>
<surveypage errorpage>
/ caption = "Wrong!
The sequence
<%textbox.n1.response%> <%textbox.n2.response%> <%textbox.n3.response%>
does NOT obey the rule."
/ questions = [1=solve]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "NEXT"
/ navigationbuttonsize = (20%, 5%)
/ nextbuttonposition = (40%, 60%)
/ branch = [if (radiobuttons.solve.response == "1") surveypage.enter_rule
else surveypage.enter_sequence]
</surveypage>
<radiobuttons solve>
/ options = ("Check another sequence.", "Stop. I know the rule.")
/ optionvalues = ("0", "1")
/ defaultresponse = ("0")
</radiobuttons>
<surveypage enter_rule>
/ caption = "Describe the rule:"
/ questions = [1=rule_description]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "FINISH"
/ navigationbuttonsize = (20%, 5%)
/ nextbuttonposition = (40%, 60%)
</surveypage>
<textbox rule_description>
/ textboxsize = (50%, 30%)
/ multiline = true
</textbox>
Best answer by TomG
No, that is CSS and html (in that order). Qualtrics creates the html for a question, so you can't use your own. Then the CSS rules that style the html have to match the html elements. Qualtrics themes provide the CSS, but you can override it.
To replicate that html form it looks like you need three Qualtrics questions: a text form with three inputs, a text input, and a multiple choice. Anyway, the html you provided is just an input form, it doesn't really do anything (`<form action="" method="post">`). You would need some kind of script to check the input.
To add code to your post put it between three backticks like
\\`\\`\\`
your code goes here
\\`\\`\\`
Then it will look like:
```
your code goes here
```
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

!
!