reprompt Element

The reprompt element causes the prompt in the current dialog or form item with the highest count attribute less than or equal to the prompt counter to be played.

Example

In the example in Listing 9.14, you add help event handlers to the whether_coupon, coupon_number, and try_again fields in GetCouponInfoEvent.vxml. Also, the prompt in try_again is changed so that, when the prompt is executed a second time within the field, the more concise prompt, “Would you like to try again” is spoken to the user.

Listing 9.14. GetCouponInfoEvent.vxml

<?xml version="1.0"?><!--GetCouponInfoEvent.vxml--><vxml version="1.0" application="BookStoreRoot.vxml" >     <meta name="author" content="John O'Reilly"/>     <meta name="copyright"            ...

Get Voice Application Development with VoiceXML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.