|
Newsletters
|
|
|
|
|
Voice XML Reference
Voice XML Reference
Bookmark this page
The menu Element - <menu>
Description: A menu is a convenient syntactic shorthand for a form containing a single anonymous field that
prompts the user to make a choice and transitions to different places based on that choice. Like
a regular form, it can have its grammar scoped such that it is active when the user is executing
another dialog.
Example:
<menu>
<prompt>Welcome home. Say one of: <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>
<noinput>Please say one of <enumerate/></noinput>
</menu>
| Attributes |
| Name |
Value |
Description |
| id |
PCDATA |
The identifier of the menu. It allows the menu to be the target of a <goto> or a <submit>. |
| scope |
"dialog", "document" |
The menu’s grammar scope. If it is dialog (default), the menu’s grammars are only active when the user transitions into the menu. If the scope is document, its grammars are active over the whole document (or if the menu is in the application root document, any loaded document in the application). |
| dtmf |
boolean |
When set to true, any choices that do not have explicit DTMF elements are given the implicit ones "1", "2", etc. |
Back to Tag Listing
|
|