I am trying to accept a credit card number into a <field> tag in the following code snipit:
=========================================
<field name="cardNumber" type="digits?length=19" modal="true">
<prompt>
Please enter your nineteen digit Fuel Links card number.
</prompt>
<filled>
<prompt>
You entered
<say-as type="acronym">
<value expr="cardNumber"/>
</say-as>
</prompt>
</filled>
<noinput>
I'm sorry, I did not hear you...
<clear namelist="cardNumber"/>
</noinput>
</field>
============================================
When I try to put the number in via the touch-tone phone, it fails about midway through the 19 digits and hangs up. I know it will hang up if it doesn't have a catchall, but I don't get either of the prompt messages.
I added the modal option on the <field> tag to try to prevent any other interpretations.
I checked the log and it appears to be treating each dtmf key pressed as a completed entry and causing a <nomatch>.
What do I need to do to force the interpreter to wait for all 19 digits?
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
problem with long number input in <field>
-
- Posts: 30
- Joined: Tue Apr 18, 2006 3:05 pm
- Location: Bedford, TX
IVR code to show 5s interdigititmeout
You should add the IVR tag, <property>, above the field that sets interdigittimeout to a larger value. Given the fact that you're expecting callers to enter a 19 digit number, I'd recommend a 5s interdigittimeout. So you'll add the following line of IVR code:
If you would like the IVR platform to immediately complete the field after the 19th digit is entered (rather than waiting 5s or expecting the "#" terminator to be entered) you should turn on max digit termination with the following line of IVR code:
Code: Select all
....
<property name="interdigittimeout" value="5s"/>
....
Code: Select all
....
<property name="termmaxdigits" value="true"/>
....