Forums

Validation rules inside a repeater area with multiplier

vismay 17 Jan, 2018
Hello,

I'm trying to make the validation rule work.

Iv'e found that:
jQuery.fn.form.settings.rules.customfn = function(value, param) {
var x = 12;
if (Number(value) < Number(x)) {
return false;
}else{
return true;
}
};



and it's working well.

But if I want to use it inside a repeater area with multiplier, it gives me always error.

I'm supposing is waiting for other -N -fields to verify that actually are not there, because if I switch off the multiplier function ( with is working again.

Any suggestion?
Thnks!
Max_admin 31 Jan, 2018
Hi Vismay,
As noted in another post, your field name and id inside the repeater should be unique for the validation to work correctly, this is done by adding {var:area_repeater.key} to the field name and id
Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.