Last reviewed: 3/23/2024 12:42:35 PM

<value>

A <value> element inserts the value of an expression in a prompt.

Syntax

<value expr="expression" />

Attributes

expr

The expression to render.

Children

none

Parents

<audio>, <block>, <catch>, <enumerate>, <error>, <field>, <filled>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <object>, <prompt>, <record>, <subdialog>, and <transfer>.

Variables

none

Example

The following example illustrates inserting a values into a prompt.

<prompt>
  <value expr="n*n"/> is the square of <value expr="n"/>.
</prompt>

Version Information

Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.