O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.7. clear

Element typeclear
Attributesnamelist
Parentsblock | catch | error | filled | help | if | noinput | nomatch
ChildrenNone.
DescriptionClears variables in the current variable scope, setting them to undefined.

DTD

<!ELEMENT clear EMPTY >
<!ATTLIST clear
  namelist %field.names; #IMPLIED >

Language model

Attributes

namelist : field.names

The name of the form item variables to be cleared. A list of form item names delimited by whitespace.

Children

None.

Examples

Example 3-9. Clearing a field's value
 <?xml version="1.0" encoding="iso-8859-1"?> <vxml version="1.0"> <form id="GrammarTest"> <var name="Gram"/> <field name="WhatYouSaid" type="currency"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required