The text caption on a survey question.
<button> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <surveyPage>
object.name.caption
Read/Write
string
The following displays the value of caption in a text stimulus:
<text myText>
/ items= ("caption = <% listbox.q1.caption %>")
</text>
The following displays the value of caption in an instruction page:
<page myPage>
caption = <% checkboxes.q2.caption %>
</page>
The following code is an example for changing the caption of a (not required to answer) radiobutton question in case it is not responded to. In this example, the non-responded to question should be repeated once with a new caption.
<surveyPage page1>
/ onTrialBegin = {
values.trialCounter++;
if (values.trialCounter == 2){
radioButtons.q1.caption = "Did you forget to make your selection? If yes, please select what applies best:";
}
}
/ questions = [1 = q1]
/ branch = {
if (values.trialCounter >= 2){
return null;
} else if (radioButtons.q1.response == ""){
return this;
}
return null;
}
</surveyPage>