The options attribute specifies the labels for the options of a multiple choice survey item.
<checkboxes> <dropdown> <listbox> <radioButtons>
Name | Type | Description |
---|---|---|
label | string | Specifies the label (in quotes) for a given choice. |
The labels can be any string of text. For radioButtons and checkboxes, rich text markup is also supported. The labels also function as the default value for the option, although values that are different than the labels can be assigned using the optionValues attribute.
The following shows a listbox survey item with evaluative labels:
<listbox ratingquestion>
/ caption = "How do you feel about icecream?"
/ options=["excellent", "good", "satisfactory", "bad", "awful"]
</listbox>
The following shows a checkbox survey item with various options:
<checkboxes exemptions>
/ caption = "Which of the following sports do you play?"
/ options=["football", "baseball", "basketball", "hockey", "soccer", "snowboarding"]
</checkboxes>
The following shows a radioButton survey item with options that contain dynamically inserted text:
<radioButtons exemptions>
/ caption = "Which one of the following sports is your favorite?"
/ options=["<% values.sport1 %>", "<% values.sport2 %>", "<% values.sport3 %>", "<% values.sport4 %>"]
</radioButtons>