What I'm looking to do is the following when the user
has to enter their 6 digit id:
1. System says "please enter id"
2. User has 3 seconds to enter their 1st digit
3. User enters 1st digit
4. User has 3 seconds to enter their 2nd digit
5. User enters 2nd digit
6. User has 3 seconds to enter their 3rd digit
7. User enters 3rd digit
8. User has 3 seconds to enter their 4th digit
9. User enters 4th digit
10. User has 3 seconds to enter their 5th digit
11. User enters 5th digit
12. User has 3 seconds to enter their 6th digit
13. User enters 6th digit
14. System has 1-2 seconds to go to next page
My problem is that if I use the <property name="interdigittimeout" value="3s"/> with the type="digits?maxlength=6", I thought this would eliminate my issue with the system getting to the next page within 1-2 seconds. The ONLY way I could get the system to get to the next page within 1-2 seconds was to eliminate the <property name="interdigittimeout" value="3s"/>. My code is attached below. My goal is the following:
1. Allow the users 3 seconds in between key presses for entering their 6 digit id
2. Have the system go to the next page within 1-2 seconds. Right now, it is 4-5 seconds in which our clients will consider that a huge latency.
Thanks!!
Mike C.
Code: Select all
<form id="getuserid">
<var name="StartDateTimeMonth" expr="'<% = dtStartDateTimeMonth %>'"/>
<var name="StartDateTimeDay" expr="'<% = dtStartDateTimeDay %>'"/>
<var name="StartDateTimeYear" expr="'<% = dtStartDateTimeYear %>'"/>
<var name="StartDateTimeHour" expr="'<% = dtStartDateTimeHour %>'"/>
<var name="StartDateTimeMinute" expr="'<% = dtStartDateTimeMinute %>'"/>
<var name="StartDateTimeSecond" expr="'<% = dtStartDateTimeSecond %>'"/>
<field name="username" type="digits?maxlength=6">
<property name="interdigittimeout" value="3s"/>
<property name="inputmodes" value="dtmf"/>
<prompt timeout="5s" bargein="true">
<voice>Please enter your i <break time="10ms"/> d.
</voice>
</prompt>
<noinput count="1">
Sorry, I did not hear you. Please try again.
<reprompt/>
</noinput>
<nomatch count="1">
Sorry, I did not hear you. Please try again.
<reprompt/>
</nomatch>
<noinput count="2">
Sorry, I still did not hear you. Please try again.
<reprompt/>
</noinput>
<noinput count="3">
Thank you for using Metro Script. Goodbye.
<exit/>
</noinput>
<nomatch count="3">
Thank you for using Metro Script. Goodbye.
<exit/>
</nomatch>
</field>
<filled>
<submit next="check_user_id.xml" method="post"
namelist="username StartDateTimeMonth StartDateTimeDay StartDateTimeYear
StartDateTimeHour StartDateTimeMinute StartDateTimeSecond"/>
</filled>
<catch event="connection.disconnect">
<exit/>
</catch>
</form>
</vxml>