Catches the noinput event.
<noinput
cond = "CDATA"
count = "integer"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
cond |
CDATA |
no |
NA |
Boolean expression that must evaluate to ECMAScript true for the <noinput> element to execute. |
count |
integer |
no |
NA |
Numerical occurrence of the noinput event, such as 2 for the second occurrence. This allows the application to handle different occurrences of the noinput event in different ways. |
This element is shorthand for <catch event="noinput">.
<field>, <form>, <initial>, <menu>, <object>, <record>, <subdialog>, <transfer>, <vxml>
<audio>, <assign>, <clear>, <data>, <disconnect>, <enumerate>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>
<?xml version="1.0"?>
<!DOCTYPE vxml PUBLIC '-//Vision/DTD VoiceXML 2.1//EN'
'http://dtd.vision.com/voice/2.1/vision_voicexml-2.1.dtd'>
<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>