Range of numbers grammar
Posted: Mon Aug 11, 2008 5:03 pm
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?
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?