Professional > Interview scripting > Interview Scripting reference > Default templates > Default question template > Other Specify responses
 
Other Specify responses
The HTML code for an Other Specify response combines the code for a categorical response with the code for text response, and appears as a single row in the question table.
<tr>
<td style="">
<div></div>
<input type="SelectionType" name="Ref" class="AnswerType"
        style="margin-left: 1em;" value="Name" [checked=""]>
<span class="TextType" style="">Label</span>
</input>
<span style="display: inline-block;">
<span class="mrQuestionText" style=""></span>
<input type="text" name="BoxRef" class="mrEdit"
          autocomplete="off" style="" maxlength="NumChars"
          value="[Answer]"/>
</span>
</td>
</tr>
BoxRef is the internal name that UNICOM Intelligence Interviewer - Server assigns to the text box. This has the form _Qqname_Oothername,where qname is the question name and othername is the name of the Other category.
NumChars is the width of the text box.
Answer is the respondent’s answer. This is present only after a snapback or restart and causes the current answer to be displayed in the input box.
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, if the question is defined as:
OtherTea "And which other types of tea do you drink?"
categorical [1..]
{
Assam, Darjeeling, Ceylon, China,
EnglishBreakfast "English Breakfast",
DrinkOtherTea "Others" other,
NoAnswer "No answer" NA
};
the row for Other Drinks becomes:
<tr>
<td style="">
<div></div>
<input type="checkbox" name="_QOtherTea_CDrinkOtherTea"
        class="mrMultiple" style="margin-left: 1em;"
        value="DrinkOtherTea">
<span class="mrMultipleText" style="">Others</span>
</input>
<span style="display: inline-block;">
<span class="mrQuestionText" style=""></span>
<input type="text" name="_QOtherTea_ODrinkOtherTea"
          class="mrEdit" autocomplete="off" style=""
          maxlength="1024" value=""/>
</span>
</td>
</tr>
See also
Default question template