HI
Posted: Sat Feb 21, 2015 1:04 am
Hi
I have created one scratchpad to get four digits ( only numbers). The code as follows
<vxml version="2.0" >
<form id="frmTransferGetAmount">
<property name="termmaxdigits" value="false"/>
<field name="userinput" type="digits?length=4">
<grammar type="application/x-jsgf" xml:lang="en-GB" mode="dtmf">( 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 )</grammar>
<prompt> please enter four digits </prompt>
<filled>
<prompt> the number is <say-as type="acronym"> <value expr="userinput"/> </say-as>
</prompt>
</filled>
<nomatch>
<prompt> you should enter only four digits. </prompt>
<reprompt/>
</nomatch>
<noinput>
<prompt>you are entered any input.</prompt>
<reprompt/>
</noinput>
</field>
</form>
</vxml>
But i code accept asterisk and hash character. Please any one let me know what is the wrong in above code. i want allow the caller should enter only numbers
I have created one scratchpad to get four digits ( only numbers). The code as follows
<vxml version="2.0" >
<form id="frmTransferGetAmount">
<property name="termmaxdigits" value="false"/>
<field name="userinput" type="digits?length=4">
<grammar type="application/x-jsgf" xml:lang="en-GB" mode="dtmf">( 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 )</grammar>
<prompt> please enter four digits </prompt>
<filled>
<prompt> the number is <say-as type="acronym"> <value expr="userinput"/> </say-as>
</prompt>
</filled>
<nomatch>
<prompt> you should enter only four digits. </prompt>
<reprompt/>
</nomatch>
<noinput>
<prompt>you are entered any input.</prompt>
<reprompt/>
</noinput>
</field>
</form>
</vxml>
But i code accept asterisk and hash character. Please any one let me know what is the wrong in above code. i want allow the caller should enter only numbers