Tropo Scripting Development Guide Home  |  Frameset Home


onBadChoice  event


Retuned when the number of attempts have been exhausted without a valid response from the user


usage

onBadChoice( )


attributes

none


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

none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2010 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site