VoxML 1.0 Element Reference
INPUT Element : Type OPTIONLIST
INPUT Element : Type OPTIONLIST
The OPTIONLIST input is used to specify a list of options from which the user can select. This input type is used in conjunction with the OPTION element, which defines the specific user responses and the behavior associated with each.
Syntax
<INPUT TYPE="OPTIONLIST" [NAME="value"] [TIMEOUT="value"] [NEXT="value" [NEXTMETHOD="value"] ] > OPTION elements </INPUT>
Attributes
Attribute Name | Allowed Values |
|
|
NAME | identifier |
|
|
NEXT | next step URL |
|
|
NEXTMETHOD | GET * |
| POST |
|
|
TIMEOUT | milliseconds (integer) |
Examples
1 <STEP NAME="init">
2<PROMPT> What would you like to drink? </PROMPT>
3<INPUT TYPE="optionlist">
4<OPTION NEXT="#coke"> coke </OPTION>
5<OPTION NEXT="#coke">
6<OPTION NEXT="#pepsi"> pepsi </OPTION>
7<OPTION NEXT="#rc"> r c </OPTION
8</INPUT>
9</STEP>
In this simple example, the VoxML voice browser will go to a different STEP depending on which cola the user selects. As defined on lines 4 and 5, if the user said “coke” or
October 1998 | VoxML 1.0 Language Reference 28 |