Validate Action Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About

Table of Contents

1 Validate Action - #validate {}

This action tells Nitrogen to validate input fields during a postback or blur event.


wf:wire(myButton, myTextbox, #validate { validators=[
  #is_required { text="Required." }


on - (atom, submit by default)
Set to 'submit' to validate fields during a postback. Set to 'blur' to validate when the field loses focus.
success_text - (String)
Text to display next to a field when the field passes validation.
validators - (Validator, or List of Validators)
The validators to run on this field.
attach_to - (atom)
Specify the id of a Nitrogen element to attach to. By default, the validator will attach to the target of the action.

Date: 2014-11-12 19:51:23 CST

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0


Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>

comments powered by Disqus