Mar 2nd, 2010, 4:04 PM
Hi,
Just a couple of quick thoughts. Have you actually tested using the same_as rule and found that it isn't working? I haven't had to use this rule myself yet, but thinking about how the rest of the validation works it doesn't matter that it is using the first fieldname (password) again as you can have multiple validation rules against one fieldname.
Rooting through the rsv.js file I found the following:
Which seems to suggest it will correctly compare the two values.
Hope that helps!
Martin
Just a couple of quick thoughts. Have you actually tested using the same_as rule and found that it isn't working? I haven't had to use this rule myself yet, but thinking about how the rest of the validation works it doesn't matter that it is using the first fieldname (password) again as you can have multiple validation rules against one fieldname.
Rooting through the rsv.js file I found the following:
Code:
case "same_as":
if (form[fieldName].value != form[fieldName2].value)
{
if (!rsv.processError(form[fieldName], errorMessage))
return false;
}
break;
Which seems to suggest it will correctly compare the two values.
Hope that helps!
Martin