GetVocal Voice Portal Technologies

[1.0 to 2.0][Tags][Attributes][Variables][Events][Properties]

VoiceXML Tag
 <menu>

Dialog for making a selection between fixed choices.

Parent Tags
<vxml>

Content Syntax
The value may be empty, or may contain one or more elements, where an element is either parsed text or one of the following tags.

<audio> <catch> <choice> <enumerate> <error> <help> <noinput> <nomatch> <prompt> <property> <value>

Attributes
Name Req/opt Default Valid values
accept Optional "exact" "approximate" "exact"
dtmf Optional "false" "false" "true"
id Optional Text
scope Optional "dialog" "dialog" "document"

Compatibility
VoiceXML 1.0 Yes, 2.0 Yes.

Description
A menu is a dialog which presents a choice to the user. It is a syntactic short-hand for a form with one field. Within the menu, the <choice> tag plays the role of an <option> tag in that field.

The <menu> tag can contain a prompt. Typically this prompt will ask the user to make a selection from the supplied choices.

Each <choice> tag specifies a grammar and/or touch-tone digit. When user input matches a choice, an event is thrown or a transition is made to a new dialog (and perhaps a new page) based on the event, uri or expr attributes of the <choice> tag.

The <enumerate> tag can be used to generate all or part of the prompt automatically based on the choices.

If the dtmf attribute of <menu> is set to "true", touch-tone digits will be assigned to <choice> tags which do not set their own dtmf attribute.

©  GetVocal, inc. All Rights Reserved.