- From: Markku Savela <msa@msa.tte.vtt.fi>
- Date: Fri, 28 Dec 2001 18:16:23 +0200
- To: www-voice@w3.org
VoiceXML 2.0, in section 1.5.3 there is a subdialog calling example
app.vxml (attached at end). The <submit> in it, does not specify a
namelist, and in 5.3.8 about this situation the text reads:
The list of variables to submit. By default, all the named field
item variables are submitted. ...
Which of the following are actually "named field item variables"?
account_number
home_phone
accountinfo
adjustment_amount
In my first read, I followed 2.1.2.1, which says field items are
<field>, <record>, <transfer>, <object> and <subdialog>, and got
accountinfo
adjustment_amount
and resulting submit parameters would be
accountinfo.acctnum
accountinfo.acctphone
adjustment_amount
Is this correct? (var's account_number and home_phone are not used?).
------------------------
<?xml version="1.0"?>
<vxml version="2.0">
<form id="billing_adjustment">
<var name="account_number"/>
<var name="home_phone"/>
<subdialog name="accountinfo" src="acct_info.vxml#basic">
<filled>
<!-- Note the variable defined by "accountinfo" is
returned as an ECMAScript object and it contains two
properties defined by the variables specified in the
"return" element of the subdialog. -->
<assign name="account_number" expr="accountinfo.acctnum"/>
<assign name="home_phone" expr="accountinfo.acctphone"/>
</filled>
</subdialog>
<field name="adjustment_amount" type="currency">
<prompt>
What is the value of your account adjustment?
</prompt>
<filled>
<submit next="/cgi-bin/updateaccount"/>
</filled>
</field>
</form>
</vxml>
Received on Friday, 28 December 2001 11:14:36 UTC