Professional > Interview scripting > Interview Scripting reference > Default templates > Default question template > Numeric and date/time responses
 
Numeric and date/time responses
The HTML code for a numeric (long or double) or date/time response is:
<span style="display: inline-block;">
<div></div>
  <input type="text" name="Ref" class="mrEdit" autocomplete="off"
      style="margin-left: 1em;" maxlength="Number"
      value="[Answer]"/>
</span>
where:
Ref is the internal name that UNICOM Intelligence Interviewer - Server assigns to the input box. This has the form _Qqname, where qname is the question name.
Number is the maximum number of characters that can be entered for the response. For numeric responses, this is determined by the maximum value defined in the question's metadata; it is always 40 for date/time responses.
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.
For example:
Age "How old are you?" long [18..99];
becomes:
<span class="mrQuestionText" style="">How old are you?</span>
<div><br/></div>
<div></div>
<span style="display: inline-block;">
  <div></div>
      <input type="text" name="_QAge" class="mrEdit"
          autocomplete="off" style="margin-left: 1em;"
          maxlength="2" value=""/>
</span>
See also
Default question template