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 = "TextColor"][, bgcolor = "TextBgColor"] [, font([family = "name"][, size = number][, effect=value])])
where:
TextColor is the color in which to display the answer.
TextBgColor is the background color for the respondent’s answer.
name is a font family name. Names containing spaces must be enclosed in single quotation marks. You may specify lists of names by separating the names with commas. The interviewing program will scan the list in order and will use the first fonts that it finds in the respondent’s browser.
number is the point size you want to use.
effect is the name of a boolean variable associated with a particular font effect and 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.
Here are some examples:
DOB2 "Please enter your date of birth." style(color = "red") date;
Date response in red
DOB3"Please enter your date of birth." style(font(family = "'Arial Black'")) date;
Numeric response in Arial Black typeface
For Other Specify responses, place 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:
Qname.Style.property = value
where:
Qname 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 as described above.
value is an appropriate value for the property as described above.
The statement:
DOB.Style.Color = "red"
displays the date of birth that the respondent enters in red as shown above, while:
DOB.Style.Font.Effects = FontEffects.feBold
displays it in bold.
To specify settings for Other Specify responses, type:
Qname.Categories[{OtherName}].OtherQuestion.Style.property = value
where:
Qname is the question name.
OtherName is the name of the Other Specify response.
property is the name of the property you want to set and is one of Color, BgColor, Font.Family, Font.Size, or Font.Effects as described above.
value is an appropriate value for the property as described above.
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 would be shown as follows:
Similarly:
MoreTV.Categories[{OtherSport}].OtherQuestion.Style.Font. _
    Effects = FontEffects.feBold+FontEffects.feItalic
shows the respondent’s Other Specify answer in a bold italic font:
See also
Input boxes for numeric, text, date, and other specify responses