<nomatch>

Catches the nomatch event.

Syntax

<nomatch
    cond = "CDATA"
    count = "integer"
/>

Attributes

Attribute

Data Type

Default

Description

cond

CDATA

NA

Boolean expression that must evaluate to ECMAScript true for the <nomatch> element to execute.

count

integer

NA

Numerical occurrence of the nomatch event, such as 2 for the second occurrence. This allows you to handle different occurrences of the nomatch event in different ways.

Details

This element is shorthand for <catch event="nomatch">

Parents

<field>, <form>, <initial>, <menu>, <object>, <record>, <subdialog>, <transfer>, <vxml>

Children

<audio>, <assign>, <clear>, <data>, <disconnect>, <enumerate>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>

Example

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <form id="creditCard">
        <field name="cardtype">
            <prompt>Which credit card type ?</prompt>
            <grammar type="application/srgs+xml" root="cardtype">
                <rule id="cardtype">
                    <one-of>
                        <item>american express <tag>amex</tag></item>
                        <item>master card <tag>mc</tag></item>
                        <item>visa <tag>visa</tag></item>
                    </one-of>
                </rule>
            </grammar>
            <noinput count="1">
                Sorry I didn't hear you 
                <reprompt/>
            </noinput>
            <noinput count="2">
                Sorry still didn't hear you 
                <reprompt/>
            </noinput>
            <nomatch count="1">
                <prompt>
                    Sorry I didn't understand please repeat the card type
                </prompt>
            </nomatch>
            <nomatch count="2">
                <prompt>
                    I still don't understand please select either american express 
                        or master card or visa
                </prompt>
            </nomatch>
            <filled namelist="cardtype">
                <prompt>
                    You selected <value expr="cardtype"/>
                </prompt>
            </filled>
        </field>
    </form>
</vxml>

See Also

<catch>