Description
Catches a nomatch event, which is thrown by the VoiceXML application or by
the IP Media Server when, during an input context, the user inputs data that
is not matched with any entry in the grammar(s). The <nomatch>
element associates a nomatch handler with a document, dialog (i.e. form or menu),
or form item. It contains executable content. It is a shorthand notation for
<catch event="nomatch">.
Syntax
<nomatch
count="integer"
cond="ECMAScript_Expression">
child elements
</nomatch> |
Attributes
|
Attribute |
Description |
|
count |
The count attribute allows you to handle different occurrences of the
nomatch event differently. Each form, menu, and form item maintains
a counter for the nomatch event while it is being visited; these counters
are reset each time the menu or form item's form is re-entered.
When there are more than one |
|
cond |
An ECMAScript expression to be evaluated and used as a boolean
condition. This |
Anonymous Variables
Two anonymous variables are available within the scope of
the <nomatch> element:
<throw>, <choice>,
<link>, or <return>
element, or a platform defined value for nomatch events thrown by
the platform.
If no message is specified, the value of this variable is ECMAScript
undefined.
Parents
<field>, <form>, <initial>, <menu>, <object>, <record>, <subdialog>, <transfer>, <vxml>
Children
<assign>, <audio>, <clear>, <data>, <disconnect>, <enumerate>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>, #PCDATA
Extensions
None.
Limitations/Restrictions
com.voicegenie.STRICTCONFORMANCE property set to
FALSE, if a catch element is in a different page (ex. application root) from the page that the event was thrown in, relative URIs in the catch element are resolved relative to the page that catches the event.Example
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
<field name="field1">
<dtmf> 1 </dtmf>
<prompt> Please press 4. </prompt>
<nomatch>
I don't recognize that key.
<exit/>
</nomatch>
</field>
</form>
</vxml> |