ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Javascript custom validation

jdelvalle 01 Mar, 2022
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.
jdelvalle 03 Mar, 2022
Someone can I help me?.

Thanks.
You need to login to be able to post a reply.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com