Boolean responses
The HTML code for boolean responses is:
<span style="display: inline-block;">
<div></div>
<input type="selection_type" name="reference" class="answer_type"
style="margin-left: 1em;" value="TF" [checked=""]></input>
</span>
where
▪selection_type is radio if a pair of true and false (yes/no) buttons are required, or checkbox if a single true (yes) check box is required.
▪reference is the internal name that UNICOM Intelligence Interviewer - Server assigns to the category. This has the form _Qquestion_name_Fsetting,where question_name is the question name.setting is either “true” or “false”. When a single check box is used, setting is always “true”.
▪answer_type is mrSingle for two radio buttons or mrMultiple for a single check box.
▪TF is either true or false. When the response list is two radio buttons, you will have two entries, one whose value is true and the other whose value is false. When the response list is a single check box, the value is always true.
The checked="" attribute is present only when the question already has an answer (usually after a snapback or restart) and marks the respondent’s current answer. This causes the radio button or check box for that answer to be preselected when the question is displayed.
For example, the question:
Newsletter "Click the check box if you would like to receive our online newsletter." boolean;
becomes:
<span style="display: inline-block;">
<div></div>
<input type="checkbox" name="_QNewsletter_Ftrue"
class="mrMultiple" style="margin-left: 1em;"
value="true"></input>
</span>
See also