Last reviewed: 3/23/2024 12:03:35 PM

<clear>

A <clear> element clears one or more form item variables.

Syntax

<clear namelist="var1 ..." />

Attributes

namelist

The list of variables to be reset; this can include variable names other than form items. If an undeclared variable is referenced in the namelist, then an error.semantic is thrown. When not specified, all form items in the current form are cleared.

Children

none

Parents

<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>, <prompt>,

Variables

none

Example

The following example illustrates using example elements.

<clear namelist="city state zip" />

Version Information

Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.