|
Newsletters
|
|
|
|
|
Voice XML Reference
Voice XML Reference
Bookmark this page
The enumerate Element - <enumerate>
Description: The <enumerate> element is an automatically generated description of
the choices available to the user. It specifies a template that is applied to each choice in the
order they appear in the menu. If it is used with no content, a default template that lists all the
choices is used, determined by the interpreter context. If it has content, the content is the
template specifier. This specifier may refer to two special variables: _prompt is the choice’s
prompt, and _dtmf is the choice’s assigned DTMF sequence.
Example:
<menu dtmf="true">
<prompt>
Welcome home.
<enumerate>
For <value expr="_prompt"/>, press <value expr="_dtmf"/>.
</enumerate>
</prompt>
<choice next="http://www.sports.example/vxml/start.vxml">
sports </choice>
<choice next="http://www.weather.example/intro.vxml">
weather </choice>
<choice next="http://www.stargazer.example/voice/astronews.vxml">
Stargazer astrophysics news </choice>
</menu>
Back to Tag Listing
|
|