I'm trying to create a grammar that checks for a range of numbers going.
I've tried a field like this but it allows everything.
<field name="foo">
<grammar src="builtin:dtmf/digits?minlength=5"/>
<grammar src="builtin:dtmf/digits?maxlength=10"/>
<nomatch>
Nope.
</nomatch>
<filled>
Ok.
</filled>
</field>
This will accept 1 digit. I guess it's only checking the last grammar? Is there a way to do this without ecma script?
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Range of numbers grammar
IVR code to allow a range of numbers in grammar
Hi,
You could try adjusting your IVR grammar to be a builtin IVR grammar within your <field>:
Hope this helps.
Regards,
Plum Support
You could try adjusting your IVR grammar to be a builtin IVR grammar within your <field>:
Code: Select all
<field name="foo" type="digits?minlength=5;maxlength=10">
<prompt>
Please enter a number between 5 and 10 digits.
</prompt>
<nomatch>
Nope.
</nomatch>
<filled>
Ok.
</filled>
</field>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com