Jump to: navigation, search

Correction to ECMAScript variable in the <submit> tag

SUMMARY:' The <submit> tag description contains inaccurate information:
Submitted ECMAScript objects in the namelist are not flattened.

The next publication of the GVP 8.1 Voice XML Help will include these revisions:


REMOVE this text:

When submitting ECMAScript objects in the namelist, the object will be flattened (all the object's properties will be submitted separately). For example, if object o has two properties, p1 and p2, such that o.p1="value1" and o.p2="value2", and the following transition is made:

  <submit next="test.jsp" namelist="o" ...>

The HTTP request will contain o.p1=value1&o.p2=value2. Remember to retrieve the properties separately (as o.p1 and o.p2) in the server-side code used to generate the next page.


REPLACE with this text:

When an ECMAScript variable is submitted to the server its value is first converted into a string before being submitted. If the variable is an ECMAScript Object, its value would take on the ECMAScript string “[object]”. For example, if object o has two properties, p1 and p2, such that o.p1="value1" and o.p2="value2", and it should be submitted separately as o.p1 & o.p2

<submit next="test.jsp" namelist="o.p1 o.p2" >
This page was last edited on March 10, 2017, at 13:41.
Comments or questions about this documentation? Contact us for support!