I have two questions regarding the code excerpt below:
- 1 - the caller enters '040118#'. Why doesn't this pass the grammar check (termchar is set to #)?
2 - Why isn't this reprompt working? Instead of reprompting for fld_startdate, the dialog moves onto the next field (fld_starttime).
Scott
Here's my code excerpt (with the suspect reprompt in red).
<!-- Collect shift start date from caller -->
<field name="fld_startdate" type="digits?length=6">
<prompt>
<audio src="{{appUrl('audio/enter_startdate.wav')}}">
Please enter shift start date in M M D D Y Y format
</audio>
</prompt>
<filled>
<if cond="validDate(fld_startdate) != true">
<audio src="{{appUrl('audio/invalid_date.wav')}}">
Please enter a valid date
</audio>
<clear namelist="fld_startdate" />
<goto nextitem="fld_startdate"/>
</if>
</filled>
<nomatch>
<audio src="{{appUrl('audio/no_match.wav')}}">
Sorry, I didn't understand you
</audio>
<reprompt/>
</nomatch>
</field>
<!-- Collect shift start time from caller -->
<field name="fld_starttime" type="digits?length=4">
<prompt>
<audio src="{{appUrl('audio/enter_starttime.wav')}}">
Please enter shift start time in H H M M format
</audio>
.....