I am building a function on Javascript for do some validations own and I am following the FAQ "Validating fields" in the point "Custom validation function" and it doesn't work.
This code doesn't work:[pre]jQuery.fn.form.settings.rules.customfn = function(value, param) {
return false;
};[/pre]
It work with this code:[pre]function customfn() {
return false;
};[/pre]
In the event "Call function" en "Action Parameter" I write "customfn".
If I write "customfn:error-message" doesn't work too.[br][br]How mush I perform the call to the function and place the error message? [br][br]Thanks.
This code doesn't work:[pre]jQuery.fn.form.settings.rules.customfn = function(value, param) {
return false;
};[/pre]
It work with this code:[pre]function customfn() {
return false;
};[/pre]
In the event "Call function" en "Action Parameter" I write "customfn".
If I write "customfn:error-message" doesn't work too.[br][br]How mush I perform the call to the function and place the error message? [br][br]Thanks.
You need to login to be able to post a reply.