Page 1 of 1

throw does not cause count to increment for nomatch event

Posted: Tue Aug 06, 2019 2:30 pm
by AjayExpresso

I have the following catch handlers defined in the root document for my application:

<catch event="nomatch">
<prosody rate="medium" volume="100">
Sorry, your selection was not a valid entry. Please try again.
<catch event="nomatch" count="3">
<submit namelist="dnis ani session_id " next="/transfer/maxinvalid" method="get"/>

These have been working fine in general.

Now I have a scenario where a form implements validation logic for one of the inputs and uses <throw event='nomatch'> if required. I see first root handler getting invoked, but not the second one (count=3), in spite of repeated consecutive throws. Is there a trick to getting this to work?



Re: throw does not cause count to increment for nomatch even

Posted: Thu Aug 08, 2019 10:05 am
by admin
Hi Ajay,
We'd be happy to look into this for you.

If possible, please include the entire root document. This will provide context for our troubleshooting.

The third catch submits data to a web service. Are you sure you're getting a return value from that service? For debugging, I would suggest adding a simple <prompt> before the <submit> as an audio indicator whether or not the event is handled.