developer_guide:voicexml_references:elements:value

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer_guide:voicexml_references:elements:value [2015/10/27 21:46] (current)
borja created
Line 1: Line 1:
 +====== < value > ======
  
 +===== Description =====
 +
 +The <value> element inserts the value of an expression in a prompt.
 +
 +===== Syntax =====
 +
 +<code>
 +<value
 +expr="ECMAScript_Expression"/>
 +</code>
 +
 +===== Attributes =====
 +
 +|expr|The expr attribute is an expression to return. This attribute is required.|
 +
 +===== Parents =====
 +
 +<code>
 +<audio>, <block>, <catch>, <choice>, <enumerate>, <error>, <field>, <filled>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <object>, <prompt>, <record>, <subdialog>, <transfer>
 +</code>
 +
 +===== Children =====
 +
 +<code>
 +None.
 +</code>
 +
 +===== Extensions =====
 +
 +<code>
 +None.
 +</code>
 +
 +===== Limitations/Restrictions =====
 +
 +<code>
 +None.
 +</code>
 +
 +===== Example Code =====
 +
 +<code>
 +<?xml version="1.0"?>
 +<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
 + <form>
 +  <field name="maincourse">
 +   <noinput> <reprompt/> </noinput>
 +   <nomatch> <reprompt/> </nomatch>
 +   <prompt count="1">Please select an entree.</prompt>
 +   <prompt count="2">Today, we're featuring:<enumerate/></prompt>
 +   <option dtmf="1" value="fish">swordfish</option>
 +   <option dtmf="2" value="beef">roast beef</option>
 +   <option dtmf="3" value="frog">frog legs</option>
 +   <filled>
 +    <prompt>
 +     <value expr="maincourse"/>, good choice.
 +     Please enjoy your meal.
 +    </prompt>
 +    <submit next="maincourse.cgi" method="post" 
 +namelist="maincourse"/>
 +   </filled>
 +  </field>
 + </form>
 +</vxml>
 +</code>
  • developer_guide/voicexml_references/elements/value.txt
  • Last modified: 2015/10/27 21:46
  • by borja