onBadChoice event
Retuned when the number of attempts have been exhausted without a valid response from the user
usage
onBadChoice( )
attributes
code samples
Javascript example
event=prompt( "Who would you like to call? Just say John or Jane",
{
repeat : 3,
timeout : 7,
choices : "john, jane",
onChoice : function( event ) { say( "You said" + event.choice ) },
onBadChoice: function( event ) { say( "I'm sorry, I didn't understand what you said." ) },
onError : function( event ) { say("There was an error") },
onHangup : function( event ) { log("The user hungup") },
onSilenceTimeout: function (event) { log("Silence timeout") },
onTimeout : function( event ) { say( "I'm sorry, I didn't hear anything." ) }
} ) ;
additional links
| ANNOTATIONS: EXISTING POSTS |
|
0 posts - click the button below to add a note to this page
© 2010 Voxeo Corporation | Voxeo IVR | VoiceXML & CCXML IVR Developer Site