no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | developer_guide:voicexml_references:elements:goto [2015/10/27 12:38] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < goto > ====== | ||
+ | ===== Description ===== | ||
+ | |||
+ | The < goto > attribute transitions to another item in the current form, another dialog in the same document, or to a different document. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | <goto | ||
+ | next=" | ||
+ | expr=" | ||
+ | nextitem=" | ||
+ | expritem=" | ||
+ | fetchaudio=" | ||
+ | fetchhint=" | ||
+ | fetchtimeout=" | ||
+ | maxage=" | ||
+ | maxstale=" | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |next|The next attribute is the URI in which to transition to. This attribute is required, and one of next, expr, nextitem, expritem is also required.| | ||
+ | |expr|The expr attribute is an ECMAScript Expression that yields the URI. This attribute is required, and one of next, expr, nextitem, expritem is also required.| | ||
+ | |nextitem|The nextitem attribute is the name of the next form item to visit in the current form. This attribute is required, and one of next, expr, nextitem, expritem is also required.| | ||
+ | |expritem|The expritem attribute is the ECMAScript Expression that yields the name of the next form item to visit. | ||
+ | |fetchaudio|The fetchaudio attribute is the URI of audio to play while waiting for the next document to be fetched.| | ||
+ | |fetchtimeout|The fetchtimeout attribute is the time interval to wait for an audio file to be fetched before playing the alternate content. This attribute is optional.| | ||
+ | |fetchhint|The fetchhint attribute defines when the audio file should be retrieved. | ||
+ | |maxage|The maxage attribute indicates the maximum time in seconds that this document will use this file before fetching another copy. This attribute is optional.| | ||
+ | |maxstale|The maxstale attribute indicates the maximum time in seconds that this document will use the file that exceeded the maxage time. This attribute is optional.| | ||
+ | |||
+ | ===== Parents ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | < | ||
+ | <field name=" | ||
+ | < | ||
+ | < | ||
+ | <if cond=" | ||
+ | < | ||
+ | </if> | ||
+ | </ | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | Would like any desserts or you want me to bring your bill? | ||
+ | </ | ||
+ | < | ||
+ | 1 {bill} | | ||
+ | 2 {desserts} | ||
+ | </ | ||
+ | < | ||
+ | <if cond=" | ||
+ | < | ||
+ | <elseif cond=" | ||
+ | < | ||
+ | </if> | ||
+ | </ | ||
+ | </ | ||
+ | <block name=" | ||
+ | | ||
+ | < | ||
+ | </ | ||
+ | <block name=" | ||
+ | Oh, I am sorry. Enjoy. | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <form id=" | ||
+ | <field name=" | ||
+ | < | ||
+ | <form id=" | ||
+ | <field name=" | ||
+ | < | ||
+ | What would you like for your desserts? | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |