Plum DEV Documentation
voicexml:tags:nomatch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:tags:nomatch [2014/05/29 18:45]
jennifer added meta description
voicexml:tags:nomatch [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹nomatch› VoiceXML tag details, attributes and VXML code example | The nomatch element abbreviates ‹catch event=“nomatch”›.}} 
-=====<​nomatch>​===== 
- 
-The <​nomatch>​ element is short for <catch event="​nomatch">​. 
-====Attributes==== 
-| count | (defaults to 1) The occurrence of the event. The count allows you to handle different occurrences of the same event differently. Each <​form>,​ <​menu>,​ and form item maintains a counter for each event that occurs while it is being visited; these counters are reset each time the <​menu>​ or form item's <​form>​ is  re-entered. The form-level counters are used in the selection of an event handler for events thrown in a form-level <​filled>​. Counters are incremented against the full event name and every prefix matching event name; for example, occurrence of the event "​event.foo.1"​ increments the counters associated with handlers for "​event.foo.1"​ plus "​event.foo"​ and "​event"​.| 
-| cond | (defaults to true) An expression that must evaluate to true after conversion to Boolean in order for the event to be caught. | 
- 
-====Notes==== 
- 
-None 
- 
-====Example==== 
- 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <​form>​ 
-    <field name="​user_id"​ type="​digits?​length=5">​ 
-      <​prompt>​ 
-        Please enter your user identification number. 
-      </​prompt>​ 
-      <​filled>​ 
-        <​prompt>​ 
-          You entered <value expr="​user_id"/>​. Goodbye. 
-        </​prompt>​ 
-        <​exit/>​ 
-      </​filled>​ 
-      <nomatch count="​1,​2">​ 
-        <​prompt>​ 
-          Your input was not valid. Your customer identification number should be the five digit number you received in your sign up email. 
-        </​prompt>​ 
-        <​reprompt/>​ 
-      </​nomatch>​ 
-      <nomatch count="​3">​ 
-        <​prompt>​ 
-          It appears you are having difficulty with your customer identification number. Please try your call again later. Goodbye. 
-        </​prompt>​ 
-        <​exit/>​ 
-      </​nomatch>​ 
-    </​field>​ 
-  </​form>​ 
-</​vxml>​ 
-</​code>​ 
- 
-The output of the above script would be: 
- 
-Computer: Please enter your user identification number. \\ 
-User: <user enters: 1 2 3> (nomatch x1) \\ 
-Computer: Your input was not valid. Your customer identification number should be the five digit number you received in your sign up email. \\ 
-Computer: Please enter your user identification number. \\ 
-User: <user enters: 1 2 3 4> (nomatch x2) \\ 
-Computer: Your input was not valid. Your customer identification number should be the five digit number you received in your sign up email. \\ 
-Computer: Please enter your user identification number. \\ 
-User: <user enters: 2 2 2> (nomatch x3) \\ 
-Computer: ​ It appears you are having difficulty with your customer identification number. Please try your call again later. Goodbye. *application hangs up* \\ 
- 
- 
- 
-====Child Tags==== 
- 
-[[voicexml:​tags:​assign|<​assign>​]],​ [[voicexml:​tags:​audio|<​audio>​]],​ [[voicexml:​tags:​clear|<​clear>​]],​ [[voicexml:​tags:​data|<​data>​]],​ [[voicexml:​tags:​disconnect|<​disconnect>​]],​ [[voicexml:​tags:​enumerate|<​enumerate>​]],​ [[voicexml:​tags:​exit|<​exit>​]],​ [[voicexml:​tags:​foreach|<​foreach>​]],​ [[voicexml:​tags:​goto|<​goto>​]],​ [[voicexml:​tags:​if|<​if>​]],​ [[voicexml:​tags:​log|<​log>​]],​ [[voicexml:​tags:​prompt|<​prompt>​]],​ [[voicexml:​tags:​reprompt|<​reprompt>​]],​ [[voicexml:​tags:​return|<​return>​]],​ [[voicexml:​tags:​script|<​script>​]],​ [[voicexml:​tags:​submit|<​submit>​]],​ [[voicexml:​tags:​throw|<​throw>​]],​ [[voicexml:​tags:​value|<​value>​]],​ [[voicexml:​tags:​var|<​var>​]] 
- 
- 
-====Parent Tags==== 
- 
-[[voicexml:​tags:​field|<​field>​]],​ [[voicexml:​tags:​form|<​form>​]],​ [[voicexml:​tags:​form|<​form>​]],​ [[voicexml:​tags:​menu|<​menu>​]],​ [[voicexml:​tags:​record|<​record>​]],​ [[voicexml:​tags:​subdialog|<​subdialog>​]],​ [[voicexml:​tags:​transfer|<​transfer>​]],​ [[voicexml:​tags:​vxml|<​vxml>​ 
-]]