ZVON > References > VoiceXML Reference |
Intro / Search / ZVON |
Element: | goto |
Attributes: | | caching | expr | expritem | fetchaudio | fetchhint | fetchtimeout | next | nextitem | |
Parents: | | block | catch | error | filled | help | if | noinput | nomatch | |
Description: | Go to Standard |
<goto nextitem="ssn_confirm"/> <goto expritem="(type==12)? 'ssn_confirm' : 'reject'"/> |
<goto next="#another_dialog"/> <goto expr="'#' + 'another_dialog'"/> |
<goto next="http://flight.example/reserve_seat"/> <goto next="./special_lunch/#wants_vegan"/> |
<form id="gather_pager_message"> <object name="message" classid="builtin://keypad_text_input"> <prompt> Enter your message by pressing your keypad once per letter. For a space, enter star. To end the message, press the pound sign. </prompt> </object> <block> <assign name="document.pager_message" expr="message.text"/> <goto next="#confirm_pager_message"/> </block> </form> |
<form> <subdialog name="result" src="#getssn"> <nomatch> <goto next="http://myservice.example/ssn-problems.vxml"/> </nomatch> <filled> <submit namelist="result.ssn" next="http://myservice.example/cgi-bin/process"/> </filled> </subdialog> </form> |
<form id="test"> <var name="one" expr="1"/> <field name="two" expr="one+1" type="number"/> <var name="three" expr="two+1"/> <field name="go_on" type="boolean"> <prompt>Say yes or no to continue</prompt> </field> <filled> <goto next="#tally"/> </filled> </form> |
<form id="another_joke"> <var name="r" expr="Math.random()"/> <field name="another" type="boolean"> <prompt cond="r < .50"> Would you like to hear another elephant joke? </prompt> <prompt cond="r >= .50"> For another joke say yes. To exit say no. </prompt> <filled> <if cond="another"> <goto next="#pick_joke"/> </if> </filled> </field> </form> |
<vxml version="1.0"> <meta name="author" content="John Doe"/> <meta name="maintainer" content="hello-support@hi.example"/> <var name="hi" expr="'Hello World!'"/> <form> <block> <value expr="hi"/> <goto next="#say_goodbye"/> </block> </form> <form id="say_goodbye"> <block> Goodbye! </block> </form> </vxml> |
<form id="launch_missiles"> <field name="password"> <prompt>What is the code word?</prompt> <grammar>rutabaga</grammar> <help>It is the name of an obscure vegetable.</help> <catch event="nomatch noinput" count="3"> <prompt>Security violation!</prompt> <submit next="apprehend_felon" namelist="user_id"/> </catch> </field> <block> <goto next="#get_city"/> </block> </form> |
<vxml version="1.0"> <form> <transcribe name="message" beep="true" maxtime="30s"> <prompt> What is the message you want to leave? </prompt> <nomatch count="2"> Try to make your message simpler. </nomatch> <nomatch count="3"> Transferring to operator. <goto next="queue_caller.pl"/> </nomatch> </transcribe> <field name="confirm" type="boolean"> <prompt> Your message is <value expr="message"/>. </prompt> <prompt> To send it, say yes. To discard it, say no. </prompt> <filled> <if cond="confirm"> <submit next="send_page.pl" namelist="message"/> </if> <clear/> </filled> </field> </form> </vxml> |
<form id="survey_2000_03_30"> <catch event="exit"> <goto nextitem="confirm_exit"/> </catch> <block> <prompt> Hello, you have been called at random to answer questions critical to U.S. foreign policy. </prompt> </block> <field name="q1" type="boolean"> <prompt>Do you agree with the IMF position on privatizing certain functions of Burkina Faso’s agriculture ministry?</prompt> </field> <field name="q2" type="boolean"> <prompt>If this privatization occurs, will its effects be beneficial mainly to Ouagadougou and Bobo-Dioulasso?</prompt> </field> <field name="q3" type="boolean"> <prompt>Do you agree that sorghum and millet output might thereby increase by as much as four percent per annum?</prompt> </field> <block> <submit next="register" namelist="q1 q2 q3"/> </block> <field name="confirm_exit" type="boolean"> <prompt>You have elected to exit. Are you sure you want to do this, and perhaps adversely affect U.S. foreign policy vis-à-vis sub-Saharan Africa for decades to come?</prompt> <filled> <if cond="confirm_exit"> Okay, but the U.S. State Department is displeased. <exit/> <else/> Good, let’s pick up where we left off. <clear namelist="confirm_exit"/> </if> </filled> </field> </form> |