VoxML 1.0 Element Reference

INPUT Element : Type YORN

INPUT Element : Type YORN

The YORN input is used to collect “yes or no” responses from the user. This input maps a variety of affirmative and negative responses to the values “Y” and “N”, simplifying the work of the application developer in interpreting this type of user response.

Syntax

<INPUT TYPE="YORN" NAME="value" [TIMEOUT="value"] NEXT="value" [NEXTMETHOD="value"] />

or

<INPUT TYPE="YORN" [NAME="value"] [TIMEOUT="value"] [NEXT="value" [NEXTMETHOD="value"] ] > CASE elements </INPUT>

Attributes

Attribute Name

Allowed Values

 

 

NAME

identifier

 

 

NEXT

next step URL

 

 

NEXTMETHOD

GET *

 

POST

 

 

TIMEOUT

milliseconds (integer)

Examples

1 <STEP NAME="ask">

2<PROMPT> Fire the missles now? </PROMPT>

3<INPUT TYPE="YORN" NAME="fire" NEXT="#confirm"/>

4</STEP>

In this example, we use the YORN input type to collect a “yes or no” response from the user, store that response into the VoxML variable named “fire”, and then go to the STEP named “confirm”.

The YORN input type stores the value “Y” for affirmative responses and the value “N” for negative responses. Affirmative and negative responses are determined using an input grammar that maps various user responses to the appropriate result.

October 1998

VoxML 1.0 Language Reference 34

Page 38
Image 38
Motorola 1 manual Input Element Type Yorn