Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Email confirmation

edited May 2013 in Apps

In creating forms, is there any way to validate two input boxes if they have the same values, say text. I'm trying to create a form wherein the user inputs his/her email in a text box and input his/her email again on another input box for confirmation.

Comments

  • At the moment, the validations in the form app are a bit limited to keep the UI simple. If you need the verification, it might be easier to build a custom form. Custom forms are pretty straight-forward to write in Elefant if you follow this tutorial:

    http://www.elefantcms.com/wiki/Code-example:-Ridiculously-easy-forms

    For an example of verifying that two fields match, take a look at the apps/user/forms/signup.php file. The signup asks the user to enter their password twice to verify, and that file shows how the validation is written.

  • Thank you very much!

Sign In or Register to comment.