We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Reading multiple digits

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
tnelson321
Posts: 1
Joined: Mon Nov 11, 2013 9:32 am

Reading multiple digits

Post by tnelson321 »

I have a form and can only get it to respond to single digit input. How can I configure it so that I can detect the entire sequene of digits entered?
Below is an example of what I'm trying to do.

<form id="FormM9a">
<field name="FormM9aChoice" type="digits?length=4;">

<prompt>
<voice name="crystal" age="40">
Medicare is currently not primary for Part A, hospitalization insurance,
and Part B medical insurance. The beneficiary is currently not entitled to part D
prescription drug coverage. To find out if Medicare was principle on a specific date, press 1
for entitlement information, press 2. To repeat the information press the star key to go back press 9
or to speak with a customer service representative press 0.

</voice>
</prompt>
<filled>
<if cond="FormM9aChoice==2234">
<goto next="#FormM10"/>
<elseif cond="FormM9aChoice==1345"/>
<goto next="#FormM1"/>
</if>
</filled>
</field>
</form>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Reading multiple digits

Post by support »

Hi tnelson321,

There doesn't appear to be anything wrong with your code except for a minor change from:

<field name="FormM9aChoice" type="digits?length=4;">

to:

<field name="FormM9aChoice" type="digits?length=4">

If the user enters 2234 on their phone keypad, they would be directed to your form, FormM10. If the user enters 1345 on their phone keypad, they would be directed to your form, FormM1.

If this is not what you're looking for, could you please provide us with more clarification as to what you would like your code to do?

Regards,
Plum Support

Post Reply