Validation custom rules

  • Kathy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #72652 by Kathy
Validation custom rules was created by Kathy
Accidentally posted this on another forum. I'd like to create a few custom validation rules. I see from the documentation for jQuery.validation that I can add custom rules to the locale file. Does events booking use any locale file in particular? (found in /public_html/media/com_eventbooking/assets/js/validate/js/languages). I tried adding something to the english file, and it didn't have any effect.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #72658 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Validation custom rules
Hi Kathy

I am afraid of it is quite hard to add custom validation rule. The code for validation rule is located in the file components/com_eventbooking/helper/jquery.php, you can look at it and try to add the custom rule you want

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc