FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
same_as email comparison
#1
Believe it or not. As long as I have been coding sites I have never done a field comparison and I cannot get it work correctly. I am using FT java validation and the code is as follows:

rules.push("required,email,Please enter your email address.");
rules.push("valid_email,email,Please enter a valid email address.");
rules.push("same_as,email2,Please Check your Email Address.");

the fields in question are:

email
email2
Reply
#2
Heya,

No problem - just tweak your last line to this:

Code:
rules.push("same_as,email,email2,Please Check your Email Address.");

- Ben
Reply
#3
(Aug 21st, 2009, 8:10 PM)Ben Wrote: Heya,

No problem - just tweak your last line to this:

Code:
rules.push("same_as,email,email2,Please Check your Email Address.");

- Ben

THANKS! should have known!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)