Author: Jesse Gumm (@jessegumm)

# Clear Validation Action Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

## Table of Contents

- 1 Clear Validation Action - #clearvalidation {}

## 1 Clear Validation Action - #clearvalidation {}

This action tells Nitrogen to remove the validation requirements from the page. It can remove validators en masse.

### Usage

    wf:wire(#clear_validation{ validation_trigger = my_button }).

### Attributes

validationtarget - (Nitrogen ID)
  Validation target is the ID of the

field (textbox, dropdown, etc) that's being validated. Set this to remove validations from specific form fields (ie, fields that are being removed during postbacks).

validationtrigger - (Nitrogen ID)
  Validation target is the ID of the

element initiating the validation (ie #button{} or #link{} elements). Set this to have all validations triggered by that element removed.

validationall - (Nitrogen ID)
  This is the nuclear option for

removing validation. Set this to any Nitrogen element to have any validations connected to this element removed, either if this element is the trigger or if this element is the target.

### Wiping all validations from the page

This element can also be used to wipe all validations from all elements on the page. This is done by simply leaving the above three fields blank (or setting them to `undefined`).

For example:

    wf:wire(#clear_validation{}). %% Wipe out all validation on the page

### See Also

- base action
- validate action

Date: 2012-10-18 03:26:31 CDT

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

## Comments

Note:To specify code blocks, just use the generic code block syntax:

    <pre><code>your code here</code></pre>

comments powered by Disqus