Hello Sir,
I want to give the user only two chances to enter the valid data if the user is entering invalid data.
I'm actually using nomatch tag to capture nomatch event and then simply reprompt the message. This goes on and on in a loop. I want to control it two execute only twice. and third time simply take user to different for.
Can you please help me with some sample code.
regards
amit
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Control max tries for the user
-
- Posts: 53
- Joined: Sun Feb 15, 2009 11:42 pm
- Contact:
IVR code for controlling maximum data entry attempts
Hi,
Here's an example of IVR code using the IVR tag, <nomatch>, that should help you achieve this:
nomatchcount.php:
Regards,
Plum Support
Here's an example of IVR code using the IVR tag, <nomatch>, that should help you achieve this:
nomatchcount.php:
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<property name="voicename" value="lauren"/>
<property name="voicegender" value="female"/>
<form>
<field name="englishdigits" type="digits?length=4">
<prompt>
Please enter some digits.
</prompt>
<filled>
<prompt>
You entered <say-as type="acronym"><value expr="englishdigits"/></say-as>.
</prompt>
</filled>
<nomatch count="1">
<prompt>
You did not say or enter the correct number of digits.
</prompt>
<reprompt/>
</nomatch>
<nomatch count="2">
<prompt>
You did not say or enter the correct number of digits.
</prompt>
</nomatch>
<nomatch count="3">
<prompt>
You did not say or enter the correct number of digits.
</prompt>
<goto next="#differentform"/>
</nomatch>
</field>
</form>
<form id="differentform">
<block>
<prompt>
This is a different form.
</prompt>
</block>
</form>
</vxml>
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com