VoxML 1.0 Element Reference

INPUT Element : Type DIGITS

INPUT Element : Type DIGITS

The DIGITS input is used to collect a series of digits from the user.

Syntax

<INPUT TYPE="DIGITS" NAME="value" NEXT="value"

[NEXTMETHOD="value"] [TIMEOUT="value"] [MIN="value"] [MAX="value"] />

Attributes

Attribute Name

Allowed Values

 

 

NAME

identifier

 

 

NEXT

next step URL

 

 

NEXTMETHOD

GET *

 

POST

 

 

TIMEOUT

milliseconds (integer)

 

 

MIN

minimum number of digits (integer)

 

 

MAX

maximum number of digits (integer)

Examples

1 <STEP NAME="init">

2<PROMPT> Please say your pin now. </PROMPT>

3<INPUT TYPE="digits" NAME="pin" NEXT="#doit"/>

4</STEP>

The code on line 3 illustrates the use of the DIGITS INPUT to collect digits from the user, store the number in the VoxML variable named “pin”, and then go to the STEP named “doit”.

If the user were to say, “four five six”, in response to the PROMPT shown on line 2, the value “456” would be stored in the VoxML variable “pin”. The DIGITS input type will collect the digits 0 (i.e. zero) through 9 (i.e. nine), but not other numbers like 20 (i.e. twenty). To collect numbers like 20 (i.e. twenty) or 400 (i.e. four hundred), use the NUMBER input type.

October 1998

VoxML 1.0 Language Reference 22

Page 26
Image 26
Motorola 1 manual Input Element Type Digits