<reprompt>

Plays a field prompt when a field is re-visited after an event.

Syntax

 <reprompt/>

Description

Normally the interpreter suppresses prompts when it selects the next form item after executing a <catch> element or other event handler. By placing a reprompt element in the event handler, you can cause normal prompting to occur and prompt counters to increment when the next form item is executed.

This tag affects both the explicit fields of a form and the single implicit field of a menu.

Usage

Parents Children
<bevocal:foreach>
<block>
<catch>
<error>
<filled>
<help>
<if>
<noinput>
<nomatch>

None.

See Also

 •  VoiceXML 2.0 Specification: <reprompt>
 •  Related tag: <prompt>

Examples

 <?xml version="1.0" ?>
 <!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN"
  "http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd">
 
 <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
   <!--Do not give any input. The reprompt is played for the noinput-->
 
   <form id="form-record">
     <field name="mycolor">
       <prompt> What is your favorite color? </prompt> 
       <prompt count="2">
         Please choose red green yellow blue or orange.
       </prompt>
       <grammar type="application/x-nuance-gsl"> 
         [ red green yellow blue orange ] 
       </grammar> 
       <noinput> 
         I did not quite get your message.
         <reprompt/> 
       </noinput>
     </field>
     <block>
       <prompt>
         You chose <value expr="mycolor"/> 
       </prompt>
     </block>
   </form>
 </vxml>

[Show Frames]   [FIRST] [PREVIOUS] [NEXT]
BeVocal, Inc. Café Home | Developer Agreement | Privacy Policy | Site Map | Terms & Conditions
Part No. 520-0001-02 | © 1999-2007, BeVocal, Inc. All rights reserved | 1.877.33.VOCAL