This chapter is from the book
3.45 return
Element type |
return |
Attributes |
event | namelist |
Parents |
block | catch | error | filled | help | if | noinput | nomatch |
Children |
None. |
Description |
Returns control to the calling dialog; used in a subdialog to return data or an event. |
DTD
<!ELEMENT return EMPTY > <!ATTLIST return namelist %field.names; #IMPLIED event %event.name; #IMPLIED >
Language model
Attributes
-
event : event.name
Returns control to the dialog and throws an event.
-
namelist : field.names
A list of variables to return to the calling dialog.
Children
None.
Examples
Example 3-56 A subdialog that returns execution to its calling dialog
<?xml version="1.0" encoding="iso-8859-1"?> <vxml version="1.0"> <form> <subdialog name="result" src="#collectInfo"> <filled> We want to verify the information collected. Your birthdate is <value expr="result.itemdate"/>, your daytime phone number is <value expr="result.itemphone"/>, and your temporary password is <value expr="result.pwd"/>. </filled> </subdialog> </form> <form id="collectInfo"> <var name="pwd" expr="'twilight'"/> <field name="itemdate" type="date"> <prompt> What is your birthdate? Please say the month, date, and year. </prompt> </field> <field name="itemphone" type="phone"> <prompt> Please say your daytime phone number and extension, starting with the area code. </prompt> </field> <filled mode="all"> <return namelist="itemdate itemphone pwd"/> </filled> </form> </vxml>