Confirm Save Validator Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About

Table of Contents

1 Confirm Same Validator - #confirm_same {}

A general validator to verify that two fields have the same value. This could be used for validating "confirm email" or "confirm username" type fields.

Usage

wf:wire(button, email, #validate { validators=[
  #confirm_same { text="Emails do not match", confirm_id=confirm_email }
]}),

     #label{text="Email Address"},
     #textbox{id=email},

     #label{text="Confirm Email"},
     #textbox{id=confirm_email},

     #button{id=button, text="Confirms"}

Attributes

text - (string)
The text to display if validation fails.
confirmid - (atom)
Specify the Nitrogen Element ID of the field against which you wish to confirm.

Date: 2013-10-03 13:40:52 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