Validate Action Element

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

Table of Contents

1 Validate Action - #validate {}

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

1.1 Usage

wf:wire(myButton, myTextbox, #validate { validators=[<br>
  #is_required { text="Required." }<br>
]})

1.2 Attributes

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.

1.3 See Also

Author: Rusty Klophaus (@rklophaus) <>

Date: 2010-06-14 18:35:26 EDT

HTML generated by org-mode 6.33f in emacs 22