Flow control between forms, items, and documents Exercise Results Good try, but not quite right. Try again. In the following code, select the appropriate command from the pulldown menu to transition from the "telephone" form to the "pizzaType" form.
Flow control between forms, items, and documents
Exercise Results Good try, but not quite right. Try again. In the following code, select the appropriate command from the pulldown menu to transition from the "telephone" form to the "pizzaType" form.
Exercise Results
Good try, but not quite right. Try again.
In the following code, select the appropriate command from the pulldown menu to transition from the "telephone" form to the "pizzaType" form.
<?xml version="1.0"?>
<vxml version="1.0">
<form id="getPhoneNumber"> <field name="PhoneNumber" type="phone" > <prompt>What's your phone number?</prompt> <help> Please say your ten digit phone number. </help> </field> <block> <goto next="#getPhoneNumber"> <goto next="#pizzaType"> <submit next="pizzaType.cgi"> What kind of pizza? <goto next=#pizzaNext> </block> </form> <form id="pizzaType"> <field name="pizzaTopping" > <prompt>What type of pizza do you want?</prompt> <grammar src="../grammars/pizzas.gram" type=""application/x-jsgf"/> </field> </form>
<form id="getPhoneNumber">
<field name="PhoneNumber" type="phone" > <prompt>What's your phone number?</prompt> <help> Please say your ten digit phone number. </help> </field> <block> <goto next="#getPhoneNumber"> <goto next="#pizzaType"> <submit next="pizzaType.cgi"> What kind of pizza? <goto next=#pizzaNext> </block>
<prompt>What's your phone number?</prompt> <help> Please say your ten digit phone number. </help>
<prompt>What's your phone number?</prompt>
<help> Please say your ten digit phone number. </help>
</field>
<block>
<goto next="#getPhoneNumber"> <goto next="#pizzaType"> <submit next="pizzaType.cgi"> What kind of pizza? <goto next=#pizzaNext>
</block>
</form>
<form id="pizzaType">
<field name="pizzaTopping" > <prompt>What type of pizza do you want?</prompt> <grammar src="../grammars/pizzas.gram" type=""application/x-jsgf"/> </field>
<field name="pizzaTopping" >
<prompt>What type of pizza do you want?</prompt> <grammar src="../grammars/pizzas.gram" type=""application/x-jsgf"/>
<prompt>What type of pizza do you want?</prompt>
<grammar src="../grammars/pizzas.gram" type=""application/x-jsgf"/>
</vxml>
Copyright ©2001 VoiceXML Forum. All rights reserved. The VoiceXML Forum is a program of the IEEE Industry Standards and Technology Organization (IEEE-ISTO)
Tutorials
Tutorial 2
Page 2