developer_guide:voicexml_references:elements:value

< value >

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

<value
expr="ECMAScript_Expression"/>
exprThe expr attribute is an expression to return. This attribute is required.
<audio>, <block>, <catch>, <choice>, <enumerate>, <error>, <field>, <filled>, <help>, <if>, <initial>, <menu>, <noinput>, <nomatch>, <object>, <prompt>, <record>, <subdialog>, <transfer>
None.
None.
None.
<?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>
  • developer_guide/voicexml_references/elements/value.txt
  • Last modified: 2015/10/27 21:46
  • by borja