<param>

Specifies a parameter to pass to an object or subdialog.

Syntax

<param
    expr = "CDATA"
    name = "identifier"
    type = "CDATA"
    value = "CDATA"
    valuetype = "{data | ref}"
/>

Attributes

Attribute

Data Type

Required?

Default

Description

expr

CDATA

no

ECMAScript undefined

Expression that computes the value associated with the name attribute.

name

identifier

no

NA

Parameter name.

type

CDATA

no

NA

Currently not supported.

value

CDATA

no

NA

Literal string value associated with the name attribute.

valuetype

CDATA

no

data

Currently not supported.

Parents

<object>, <subdialog>

Children

None.

Example

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <var name="defaultName"/>
    <form>
        <block>
            Calling the sub dialog
            <assign name="document.defaultName" expr="'Fred'"/>
        </block>
        <subdialog name="subResult" src="#mySubDialog">
            <param name="firstName" expr="document.defaultName"/>
            <param name="lastName" value="Smith"/>

        </subdialog>
        <block>
            After the call to the sub dialog the name is
            <value expr="subResult.firstName"/>
            <value expr="subResult.lastName"/>
        </block>
    </form>
    <form id="mySubDialog">
        <var name="firstName" expr="'Billy'"/>
        <var name="lastName"/>
        <block>
            In the sub dialog
            <value expr="firstName"/>
            <value expr="lastName"/>
            <return namelist="firstName lastName"/>
        </block>
    </form>
</vxml>