> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/tags/clear-tag.md).

# \<clear>

## \<clear> <a href="#clear" id="clear"></a>

The `<clear>` element resets one or more form items.

### Attributes

<table><thead><tr><th width="176.33333333333331">Name</th><th width="155">Data type<select><option value="63699840717646b4aac4dc3331db8932" label="String" color="blue"></option><option value="26b4249d329047778d28a161d794de1a" label="Integer" color="blue"></option><option value="1a357e45881c43b29d362d249bae889a" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>namelist</td><td><span data-option="63699840717646b4aac4dc3331db8932">String</span></td><td>The list of variables to be reset; this can include variable names other than form items. When not specified, all form items in the current form are cleared.</td></tr></tbody></table>

### Notes

None

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="myprompt" type="digits">
      <prompt>
        Say the magic number between 1 and 9.
      </prompt>
      <filled>
        <if cond="myprompt==5">
          <prompt>
            You guessed correctly!
          </prompt>
        <elseif cond="myprompt==4 || myprompt==6"/>
          <prompt>
            You're close. Try again.
          </prompt>
          <!-- If we were not to clear the "myprompt" -->
          <!-- variable, the dialog would simply -->
          <!-- finish. Instead, we force another -->
          <!-- attempt to fill the field. -->
          <clear namelist="myprompt"/>
        <else/>
          <prompt>
            Try again.
          </prompt>
          <clear namelist="myprompt"/>
        </if>
      </filled>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Say the magic number between one and nine.\
> Human: Three.\
> Computer: Try again. Say the magic number between one and nine.\
> Human: Six.\
> Computer: You're close. Try again. Say the magic number between one and nine.\
> Human: Five.\
> Computer: You guessed correctly!

### Child Tags

None

### Parent Tags

[\<block>](/dev/voicexml/tags/block-tag.md), [\<catch>](/dev/voicexml/tags/catch-tag.md), [\<error>](/dev/voicexml/tags/error-tag.md), [\<filled>](/dev/voicexml/tags/filled-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<help>](/dev/voicexml/tags/help-tag.md), [\<if>](/dev/voicexml/tags/if-tag.md), [\<noinput>](/dev/voicexml/tags/noinput-tag.md), [\<nomatch>](/dev/voicexml/tags/nomatch-tag.md)
