GetVocal Voice Portal Technologies

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

VoiceXML Tag
 <option>

Defines a field selection.

Parent Tags
<field>

Content Syntax
The value must be parsed text.

Attributes
Name Req/opt Default Valid values
dtmf Optional Text
value Optional Text

Compatibility
VoiceXML 1.0 Yes, 2.0 Yes.

Description
Specifying <option> tags is an alternative to providing a grammar when the input to a field must be one of a fixed list of alternatives. Each <option> tag specifies an alternative.

You can specify both grammar(s) and option(s) in a field, in which case all are active.

The value attribute specifies the value to assign to the field variable when the user selects this choice. If not specified, the value of the tag (i.e., the text inside the tag) is used, with leading and trailing white space removed.

The dtmf attribute specifies a touch-tone digit which selects this option.

The text values of the <option> tags within a field are combined automatically to create a grammar which matches the choices.

The <enumerate> tag can be used to generate a prompt which lists the options in a field.
©  GetVocal, inc. All Rights Reserved.