<nomatch>

Catches a no-match event.

Syntax

 <nomatch
     count="integer"
     cond="js_expression"
 >
   Executable Content
 </nomatch>

Description

Attribute Description
count

Minimum number of times an error must have occurred during a form or menu invocation. Optional (default is 1).

cond

JavaScript expression that must also evaluate to true for an event to be caught. Optional (default is true).

If multiple handlers for no-match events are defined in, or inherited by, the element in which the events occurs, one handler is chosen based on event count, scope, and document order. See Chapter  3, Event Handling.

Tip:

 •  If a JavaScript expression contains any of the characters "<", ">", or "&", that character must be replaced with the corresponding escape sequence "&lt;", "&gt;", or "&amp;". For more information, see JavaScript Quick Reference.

Usage

Parents Children
<bevocal:listen>
<field>
<form>
<initial>
<menu>
<record>
<bevocal:register>
<subdialog>
<transfer>
<bevocal:verify>
<vxml>
<audio>
<assign>
<bevocal:connect>
<bevocal:dial>
<bevocal:disconnect>
<bevocal:foreach>
<bevocal:hold>
<bevocal:whisper>
<clear>
<data>
<disconnect>
<enumerate>
<exit>
<goto>
<if>
<log>
<prompt>
<reprompt>
<rethrow>
<return>
<script>
<send>
<subdialog>
<submit>
<throw>
<var>
<value>

See Also

 •  VoiceXML 2.0 Specification: <nomatch>
 •  Related tags: <catch>, <error>, <help>, <noinput>, <rethrow>, <throw>

Examples

 <?xml version="1.0" ?>
 <!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN"
  "http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd">
 
 <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
   <nomatch>
     Please say one of red green yellow blue or orange 
   </nomatch>
   <form id="foo">
     <field name="name">
       <prompt> What is your favorite color ? </prompt> 
       <grammar type="application/x-nuance-gsl"> 
         [ red green yellow blue orange ]
       </grammar>
       <filled>
         <prompt> Your favorite color is <value expr="name"/> </prompt>
       </filled>
     </field>
   </form>
 </vxml>

[Show Frames]   [FIRST] [PREVIOUS] [NEXT]
BeVocal, Inc. Café Home | Developer Agreement | Privacy Policy | Site Map | Terms & Conditions
Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL