< clear >

The < clear > element resets one or more form items and will perform the following actions: * Sets the form item variable to ECMAScript undefined. * Reinitializes the prompt and event counters for the form item.

namelist="item1 item2 item3 ..."/>
namelistThe namelist attribute defines the names of the form items to be cleared. When not specified, all of the form items in the current form are cleared. This attribute is optional.
<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>
<?xml version="1.0"?>
<vxml version="2.0" xmlns="">
  <field name="password">
   <prompt> what is the code word </prompt>
   <help> It is the name of a fruit </help>
   <noinput> I did not hear you. </noinput>
   <nomatch count="1"> Noop. Try again </nomatch>
   <nomatch count="2"> Noop. give another try </nomatch>
   <nomatch count="3">
    Sorry. You didn't get it for three times. Bye
    <if cond="password=='reset'">
     <clear namelist="password"/>
     This is correct.
  • developer_guide/voicexml_references/elements/clear.txt
  • Last modified: 2015/10/13 21:42
  • by borja