Motorola 1 manual Input Element Type Yorn

Page 38

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

Image 38
Contents VoxML Language Reference RevisionPage Contents Appendices Purpose of this Document What is VoxMLOverview Structure of a VoxML Document DIALOGs and STEPsBasic Elements Other Reference Documentation VoxML 1.0 Application Development GuideAttributes ACK ElementSyntax 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