Hi Garza,
Sorry this has taken a while but I think I have a fix for you.
Open validation.js and go to the end. The last few lines are:
['validate-one-required', 'Please select one of the above options.', function (v,elm) {
var p = elm.parentNode;
var options = p.getElementsByTagName('INPUT');
return $A(options).any(function(elm) {
return $F(elm);
});
}],
]);
just before the last line insert a new line like this
['validate-one-required', 'Please select one of the above options.', function (v,elm) {
var p = elm.parentNode;
var options = p.getElementsByTagName('INPUT');
return $A(options).any(function(elm) {
return $F(elm);
});
}],
['validate-match', 'Emails do not match', { equalToField : 'email1' } ]
]);
Then modify the email2 input tag in your Form HTML to read:
<input name="email2" type="text" id="email2" class="required validate-match validate-email" size="50" />
and finally remove any mention of 'email2' from the Validation tab (ChronoForms isn't yet clever enough to merge two class attributes).
Bob