Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Questions and responses > Questions with categorical responses > Subheadings in response lists
 
Subheadings in response lists
Subheadings group similar or related responses in a list. For example, if the response list contains a number of statements about a product, you might group the responses according to whether they are favorable or unfavorable comments. If there are many responses or the response texts are long, this immediately helps respondents find the general type of comment they want to make. Similarly, in a list of cars, you might use the different makes of car such as Ford or Volkswagen as subheadings, and then list the various models under the appropriate subheadings. This makes it easy for respondents to find specific answers in the list, and for you to add responses to the list.
Syntax for defining subheadings
<question_name> "<text>" categorical [[<number_of_choices>]]{
  <subhead_name_1> ["<subhead_text_1>"]
  {
    Responses
  }, ...
  <subhead_name_n> ["<subhead_text_n>"]
  {
    <responses>
  }
};
A comma separates the subsections. Each subsection has a subheading followed by a collection of responses enclosed in braces, and each subsection is separated from the next by a comma.
Parameters
<question_name>
The question name.
<text>
The question text.
<number_of_choices>
The number of responses that must be chosen. If you omit this parameter, respondents can leave the question unanswered.
<subhead_name_1> to <subhead_name_n> and <subhead_text_1> to <subhead_text_n>
The subheading names and display texts (labels).
<responses>
The responses from which the choices can be made, specified with names and display texts if appropriate.
Example
In the following example, responses have been grouped under two subheadings:
OrganicFood "There is an increasing interest in organically produced
food. What are your thoughts about this?" categorical [1..]
{
AgainstOrganicFood "Thoughts against"
{
Expensive "It's too expensive",
NotGoodLandUse "It doesn't make the best use of the land",
NotProven "There's no proof it's better than other food",
LaborIntensive "It's too labor intensive",
OtherNegative "Other thoughts against" other
},
ForOrganicFood "Thoughts for"
{
GoodForYou "It's good for you",
BuyItMyself "I buy organic food whenever I can",
GoodForLand "It's better for land",
GoodforWildlife "It's better for wildlife",
OtherPositive "Other thoughts for" other
},
NoThoughts "I have no opinions about organic food" exclusive
};
When this question is displayed during an interview it looks like this:
This graphic is described in the surrounding text.
If you have responses with identical names in more than one subsection, use namespacing to force the response names to be unique. For more information, see Responses with duplicate response names.
See also
Questions with categorical responses