Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Page layout facilities > Styles > Input boxes for numeric, text, date, and other specify responses > Display settings for respondents' answers
 
Display settings for respondents' answers
You can set the color, background color, typeface, size, and font effects for the answers that respondents type into input boxes. The syntax in both the metadata and routing sections is similar to that used for specifying the same settings for question texts, except that you use the style keyword and Style object instead of labelstyle and Label.Style.
In the metadata section
To specify settings for respondents' answers to numeric, text, and date questions, place the following element after the question text:
style([color = "<text_color>"][, bgcolor = "<text_background_color>"] [, font([family = "<font_name>"][, size = <number>][, <effect>=<value>])])
where:
<text_color> is the color in which to display the answer.
<text_background_color> is the background color for the respondent’s answer.
<font_name> is a font family name. Enclose names containing spaces in single quotation marks. You can specify lists of names by separating the names with commas. The interviewing program scans the list in order, and then uses the first fonts that it finds in the respondent’s browser.
<number> is the point size you want to use.
<effect> is one of:
Effect
Description
IsBold
Bold text.
IsItalic
Italic text.
IsOverline
Text with a line above it.
IsStrikethrough
Text with a line through it.
IsSubscript
Subscripted text.
IsSuperscript
Superscripted text.
IsUnderline
Underlined text.
<value> is True to switch the effect on or False to switch it off.
Examples
DOB2 "Please enter your date of birth." style(color = "red") date;
Date response in red
This graphic is described in the surrounding text.
DOB3"Please enter your date of birth." style(font(family = "'Arial Black'")) date;
Numeric response in Arial Black typeface
This graphic is described in the surrounding text.
For Other Specify responses, put the element after the text for the additional question. For example, to display whatever the respondent types in green italics:
MoreTV2 "Which sport would you like to see more of on TV?" categorical [1..1]
{
Swimming, Diving, Polo, Curling, Windsurfing,
OtherSport "Other sport" other
(MoreTVOthQ ". Please specify." style(color="green", font(IsItalic="True")) text)
};
For more information, see About input boxes for “Other Specify” responses.
In the routing section
If you want to use a different color for answers that the respondent enters for numeric, text, and date questions, or if you want the specification to apply to a complete categorical response block, type:
<question_name>.Style.<property> = <value>
where:
<question_name> is the question name.
<property> is the name of the property you want to set and is one of Color, BgColor, Font.Family, Font.Size, or Font.Effects.
<value> is an appropriate value for the property.
The following statement displays the date of birth that the respondent enters in red:
DOB.Style.Color = "red"
The following statement displays the date of birth that the respondent enters in bold:
DOB.Style.Font.Effects = FontEffects.feBold
To specify settings for Other Specify responses, type:
<question_name>.Categories[{<other_name>}].OtherQuestion.Style.<property> = <value>
where:
<question_name> is the question name.
<other_name> is the name of the Other Specify response.
<property> is the name of the property you want to set: one of Color, BgColor, Font.Family, Font.Size, or Font.Effects.
<value> is a value for the property.
For example, if the question is defined as:
MoreTV "Which sport would you like to see more of on TV?" categorical [1..1]
{
Swimming, Diving, Polo, Curling, Windsurfing,
OtherSport "Other sport" other
};
and the routing section contains:
MoreTV.Categories[{OtherSport}].OtherQuestion.Style.Color = "green"
the respondent’s Other Specify answer is shown as follows:
This graphic is described in the surrounding text.
The following example shows the respondent’s Other Specify answer in a bold italic font:
MoreTV.Categories[{OtherSport}].OtherQuestion.Style.Font. _
    Effects = FontEffects.feBold+FontEffects.feItalic
This graphic is described in the surrounding text.
See also
Input boxes for numeric, text, date, and other specify responses