+xHave to "revive" yet another old thread, but the questions are related to previous things:
1) earlier I asked you follwing question and you wrote this:
> that you can make a short message appear in the sense of "you ticked too many boxes"?
Yes. From the page with your checkboxes /branch to another page that displays the "too many boxes" message if too many boxes have been ticked. From there, /branch back to the original page.
----------------
My question is, if I have multiple survey pages, can I have a sort of global "error" page, which is linked to all of them and then automatically branches back to whatever current survey page the participant was on before, or do I have to setup a different "error" page for each?
Kinda related to this, is it possible to have a sort of error message pop up/ branching to an error page when using radiobuttons? In the case if the participant chooses a wrong answer and wants to proceed.
and my last question for now, for the instructions, I want certain words inside of a paragraph to be in different colors. Is there an easy way to go about it or do I have to make a separate <text> element for the colored words and try positioning them in the paragraph?
> My question is, if I have multiple survey pages, can I have a sort of global "error" page, which is linked to all of them and then automatically branches back to whatever current survey page the participant was on before, or do I have to setup a different "error" page for each?
Maybe. Ultimately, this depends on how you've set up the script. If you store whatever the previous surveypage was in a <values> entry, you can /branch back to the respective page via a <list>, for example:
<values>
/ pg = 1
</values>
<block myblock>
/ trials = [1-3 = noreplace(a,b,c)]
</block>
<surveypage a>
/ caption = "Page A"
/ ontrialbegin = [
values.pg = 1;
]
/ questions = [1=qa]
/ branch = [
if (radiobuttons.qa.response=="error") surveypage.errorpage
]
</surveypage>
<surveypage b>
/ caption = "Page B"
/ ontrialbegin = [
values.pg = 2;
]
/ questions = [1=qb]
/ branch = [
if (radiobuttons.qb.response=="error") surveypage.errorpage
]
</surveypage>
<surveypage c>
/ caption = "Page C"
/ ontrialbegin = [
values.pg = 3;
]
/ questions = [1=qc]
/ branch = [
if (radiobuttons.qc.response=="error") surveypage.errorpage
]
</surveypage>
<surveypage errorpage>
/ caption = "this is the global error page. we'll branch back to the previous surveypage"
/ branch = [
list.pagelist.nextvalue
]
</surveypage>
<radiobuttons qa>
/ options = ("proceed normally", "go to error page")
/ optionvalues = ("normal", "error")
</radiobuttons>
<radiobuttons qb>
/ options = ("proceed normally", "go to error page")
/ optionvalues = ("normal", "error")
</radiobuttons>
<radiobuttons qc>
/ options = ("proceed normally", "go to error page")
/ optionvalues = ("normal", "error")
</radiobuttons>
<list pagelist>
/ items = (surveypage.a, surveypage.b, surveypage.c)
/ select = values.pg
</list>
> Kinda related to this, is it possible to have a sort of error message pop up/ branching to an error page when using radiobuttons? In the case if the participant chooses a wrong answer and wants to proceed.
The above example code should cover that.
> and my last question for now, for the instructions, I want certain words inside of a paragraph to be in different colors. Is there an easy way to go about it or do I have to make a separate <text> element for the colored words and try positioning them in the paragraph?
Several options apart from separate <text> elements:
(1) Use HTML. Format the HTML as desired (i.e. different fonts, color, etc. for certain words as needed) and display the resulting HTML file as a <htmlpage> instruction page or in a regular <trial> as <html> stimulus.
(2) Prepare your instructions in the word processor of your choice with all the desired formatting (different colors, etc.), take a screenshot, and then simply have Inquisit display the resulting image file as a <picture> stimulus in a regular <trial>.