Forums

Email validation problem

kingzain 04 Aug, 2010
Hi,

I am trying to work the email validation but I can't seem to get it right.
This is what I did:

the names of the two fields are: text_email and text_email_confirm. I went to the validate tab and checked 'yes'; I went to the box '13 - validate confirm' and input the two names above i.e. text_email=text_email_confirm.

and this is the code under the form javascript:

window.addEvent('domready', function() {
  var email_confirm_lv = new LiveValidation('text_email_confirm', {
    validMessage: "I am valid!"
  });
  email_confirm_lv.add(Validate.Confirmation, {
    match: 'text_email',
    failureMessage: "Your Email confirmation does not match your Email."
  });
});


Any help would be appreciated
GreyHead 15 Aug, 2010
Hi kingzain,

You don't need the code in the JavaScript box. It works OK without that.

Bob
This topic is locked and no more replies can be posted.