developer_guide:voicexml_references:elements:return

< return >

The <return> element completes the execution of <subdialog> and returns control and data to a calling dialog.

<return
event="event"
namelist="variable1 variable2 ..."/>
eventReturn and throw this event. Optional.
namelistSpace-separated list of variables to be returned to the calling dialog. Optional (Defaults to no variables)
<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>
None.
None.
None.

The following shows the document that calls the subdialog:

<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
 <subdialog name="result" src="subdialog.vxml">
  <filled>
   <prompt>Your account number is <value expr="result.acctnum"/>
    Your phone number is <value expr="result.acctphone"/>
   </prompt>
  </filled>
 </subdialog>
</form>
</vxml>

The following shows the document containing the subdialog:

<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form id="basic">
 <field name="acctnum" type="digits">
  <prompt> 
    What is your account number? 
  </prompt>
 </field>
 <field name="acctphone" type="phone">
  <prompt>
    What is your home telephone number?
  </prompt>
  <filled>
   <return namelist="acctnum acctphone"/>
  </filled>
 </field>
</form>
</vxml>
  • developer_guide/voicexml_references/elements/return.txt
  • Last modified: 2015/10/27 21:43
  • by borja