3.36. option

Element typeoption
Attributesdtmf | value
Parentsfield
ChildrenCDATA
DescriptionDeclares one of a set of possible responses for a field.

DTD

<!ELEMENT option (CDATA)* >
<!ATTLIST option
  dtmf  CDATA #IMPLIED
  value CDATA #IMPLIED >

Language model



Attributes

dtmf : CDATA

The DTMF sequence for this option.

value : CDATA

The string to assign to the parent field when this option is selected.

Children

None.

Examples

Example 3-42. A field with several options
<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="1.0">
  <form id="icecream">
    <field name="flavor">
      <prompt>What ice cream flavor would you like?</prompt>
      <option>Vanilla</option>
      <option>Chocolate</option>
      <option>Rocky Road</option>
    </field>
    <filled>
      Your
      <value expr="flavor"/>
      ice cream is being prepared. Thank you.
    </filled>
  </form>
</vxml>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.240.224