Jump to content

Validate Custom Input Field on Account Registration Form


Recommended Posts

Hello,

 

I've added a new field in the Account Registration Form. The new field is asking users to write the Email a second time to ensure there are no typing errors in the Email Address.

 

I've edited the autenthication.tpl and the Validate.php files to make it happen and works as expected.

 

But I would like to also have the "instant" validation that the "default" fields of this form have yet implemented. Green checkbox if field is validated OK or red cross if something is incorrect. See attached images for a visual example simulation of what I need.

 

I've found that the validate_isEmail(s) function in the validate.js file is related to this behaviour so I've created a new function, lets call it Revalidate_mail in this file but I don't know how to pass to this function the info of the Email field & the Repeat_Email field to check if they are equal.

 

Can anyone help me to pass this variables to validate.js and get "instant" validation on the Revalidate_Email field if both emails match?

 

Thanks in advance

 

 

post-953480-0-83654300-1425587337_thumb.jpg

post-953480-0-32411800-1425587346_thumb.jpg

Edited by RinosN (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...