However, I have a voiceXML file with some introductory text, then multiple questions, where the introductory text is within <block><audio> tags (no <prompt>) and each question is contained within <field> tags. If the user does not enter a valid answer for question 2, the introductory text, and question 1 both repeat.
Here is the voiceXML (encompassing <form> and <vxml> tags omitted)
Code: Select all
<block>
<audio src="/vxml/audio/dummy.wav">Hello. This is a test to see if you know your numbers.</audio>
</block>
<field name="field120" type="number" modal="false">
<prompt bargein="false" version="1.0">
<audio src="/vxml/audio/dummy.wav">Please enter a number between 10 and 20.
</audio>
</prompt>
<filled>
<if cond="field120<10">
The value <value expr="field120" /> is not valid
<clear />
</if>
</filled>
<filled>
<if cond="field120>20">
The value <value expr="field120" /> is not valid
<clear />
</if>
</filled>
<nomatch>
<audio src="/vxml/audio/sorry.wav">Sorry I didn't understand
</audio>
<audio src="/vxml/audio/useKeyboard.wav">You can also enter the value using the keypad.
</audio>
<reprompt />
</nomatch>
</field>
<field name="confirm120" modal="false">
<grammar type="application/x-jsgf" mode="voice">(yes|1) {yes} | (no | 2) {no}</grammar>
<prompt bargein="false" version="1.0">
<audio src="/vxml/audio/dummy.wav">
You entered <value expr="field120" />
</audio>
<audio src="/vxml/audio/isCorrect.wav">
Is this correct?
</audio>
</prompt>
<filled>
<if cond="confirm120=='no'">
<clear namelist="field120 confirm120" />
<goto nextitem="field120" />
</if>
</filled>
</field>
<field name="field119" type="number" modal="false">
<prompt bargein="false" version="1.0">
<audio src="/vxml/audio/dummy.wav">
Please enter a number between 30 and 50.
</audio>
</prompt>
<filled>
<if cond="field119<30">
The value <value expr="field119"/> is not valid
<clear />
</if>
</filled>
<filled>
<if cond="field119>50">
The value <value expr="field119" /> is not valid
<clear />
</if>
</filled>
<nomatch>
<audio src="/vxml/audio/sorry.wav">
Sorry I didn't understand
</audio>
<audio src="/vxml/audio/useKeyboard.wav">
You can also enter the value using the keypad.
</audio>
<reprompt />
</nomatch>
</field>
<field name="confirm119" modal="false">
<grammar type="application/x-jsgf" mode="voice">(yes|1) {yes} | (no | 2) {no}</grammar>
<prompt bargein="false" version="1.0">
<audio src="/vxml/audio/dummy.wav">
You entered <value expr="field119" />
</audio>
<audio src="/vxml/audio/isCorrect.wav">
Is this correct?
</audio>
</prompt>
<filled>
<if cond="confirm119=='no'">
<clear namelist="field119 confirm119" />
<goto nextitem="field119" />
</if>
</filled>
</field>