<choices>

The <choices> element contains a list of choices. Each choice represents a way to complete the current step.

The <choices> element provides information when there is more than one way to complete a step. It is a list.

The <choices> element is specialized from <ul>. It is defined in the task module.

<data>*, <choice>+

Contained by

<step>

In order
  1. Zero or more <data>
  2. One or more <choice>

Contained by

- topic/ul task/choices

The <choices> element is specialized from <ul>. It is defined in the task module.

The following attributes are available on this element: universal attributes.

The following attributes are available on this element: universal attributes.

Example

This section is non-normative.

The following code sample shows how the <choices> element can be used when different operating systems have different keyboard shortcuts. In this scenario, flagging is used to render labels for the different operating systems.

<step>
  <cmd>To edit the attributes, select the element and press the
       applicable keyboard shortcut for your operating system:</cmd>
  <choices>
    <choice platform="mac-os"><uicontrol>option + return</uicontrol></choice>
    <choice platform="windows"><uicontrol>Alt + Enter</uicontrol></choice>
  </choices>
  <stepresult>The <wintitle>Attributes</wintitle> view is displayed.</stepresult>
</step>

The rendered output might look like the following: