VoxML 1.0 Element Reference
INPUT Element : Type HIDDEN
INPUT Element : Type HIDDEN
The HIDDEN input is used to store a value in a VoxML variable.
Syntax
<INPUT TYPE="HIDDEN" NAME="value" VALUE="value"/>
Attributes
Attribute Name | Allowed Values |
|
|
NAME | identifier |
|
|
VALUE | literal value |
Examples
1<STEP NAME="init">
2<PROMPT> Login sequence complete.
3Are you ready to place your order?
4</PROMPT>
5<INPUT TYPE="hidden" NAME="firstname"
6VALUE="Bill"/>
7<INPUT TYPE="hidden" NAME="lastname"
8VALUE="Clinton"/>
9<INPUT TYPE="hidden" NAME="favorite"
10VALUE="fries"/>
11<INPUT TYPE="optionlist">
12<OPTION NEXT="#order"> yes </OPTION>
13<OPTION NEXT="#wait"> not yet </OPTION>
14</INPUT>
15</STEP>
In the example code shown above, the HIDDEN INPUT type is used to create VoxML variables and assign values to those variables. In this particular example, the user has completed the login sequence and the application designer chose to save certain information in VoxML variables as soon as the user's identity has been established. This information could then be used later in the application without requiring another access into the database.
Notice that when using the HIDDEN INPUT that it is permissable to have more than one INPUT element in the same STEP. This is because the HIDDEN INPUT is not an interactive INPUT. Each STEP can contain only one INPUT that accepts a response from the user.
October 1998 | VoxML 1.0 Language Reference 24 |