Motorola 1 manual Input Element Type Hidden

Page 28

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

Image 28
Contents VoxML Language Reference RevisionPage Contents Appendices Overview What is VoxMLPurpose of this Document Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideSyntax ACK ElementAttributes Examples Audio Element Break Element Cancel Element Next step URLExamples Case Element Class Element IntegerExamples Dialog Element EMP Element Error Element Input TYPE=OPTIONLIST Help Element Option NEXT=#end done /OPTION 11 /INPUT 12 /STEP Input Element Input Element Type Date Data FormatInput Element Type Digits Input Element Type Grammar Input Element Type Hidden Input Element Type Money Input Element Type None Input Element Type Number Input Element Type Optionlist Input Element Type Phone Input Element Type PROFILE‡ Input Element Type Record Prompt Input Element Type Time Input Element Type Yorn Option Element VoxML 1.0 Element Reference Options Element Or Element Syntax AttributesPrompt Element Pros Element Rename Element Response Element Examples Step Element Switch Element Value Element PromptAppendices Appendix a VoxML 1.0 Document Type DefinitionOctober VoxML 1.0 Language Reference Appendix B Vcard Profile Names and Subtypes Vcard Profile Names and SubtypesFirst