|
Newsletters
|
|
|
|
|
Voice XML Reference
Voice XML Reference
Bookmark this page
The catch Element - <catch>
Description: The catch element associates a catch with a document, dialog, or form item. It contains executable content.
Example:
<form id="launch_missiles">
<field name="password">
<prompt>What is the code word?</prompt>
<grammar>rutabaga</grammar>
<help>It is the name of an obscure vegetable.</help>
<catch event="nomatch noinput" count="3">
<prompt>Security violation!</prompt>
<submit next="apprehend_felon" namelist="user_id"/>
</catch>
</field>
<block>
<goto next="#get_city"/>
</block>
</form>
| Attributes |
| Name |
Value |
Description |
| event |
PCDATA |
The event or events to catch. |
| count |
integer |
The occurrence of the event (default is 1). The count allows you to handle different occurrences of the same event differently. Each form item and <menu> 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 |
| cond |
boolean |
An optional condition to test to see if the event may be caught by this element. Defaults to true. |
Back to Tag Listing
|
|