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.


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

   #label{text="Confirm Email"},

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


  • text (string) - The text to display if validation fails.

  • confirm_id (atom) - Specify the Nitrogen Element ID of the field against which you wish to confirm.

See Also

View Source or Submit Corrections for this Documentation Page
Copyright © 2008-2024 Nitrogen Web Framework. Released under the MIT License.