Events Booking 3.12.2 released

More
4 years 6 months ago #134954 by guitarman
Replied by guitarman on topic Events Booking 3.12.2 released
Must have been an issue on our side :dry:

After a clean/new installation, everything works as expected! :)

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

  • Tuan Pham Ngoc
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
4 years 6 months ago #134976 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking 3.12.2 released
Great :). Happy to here that and thanks for the update

Tuan

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

More
4 years 6 months ago #135031 by Martijn Hartong
Replied by Martijn Hartong on topic Events Booking 3.12.2 released
Hi,

Where can I find more information about nr. 3. Allow override javascript code ?

Right now the custom (server) validation rules are not working for me on equal fields.


Thanks

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

  • Tuan Pham Ngoc
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
4 years 6 months ago #135038 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking 3.12.2 released
Hello

What javascript file you want to override? Please let me know so that I can guide you

Tuan

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

More
4 years 6 months ago #135057 by Martijn Hartong
Replied by Martijn Hartong on topic Events Booking 3.12.2 released
Hi,

I am trying to test two field values onChange with: equals[field.id], but I cannot make adjustments in the automatic generated Validation Rules Field.

posabsolute.github.io/jQuery-Validation-Engine/#validators

eventbookingdoc.joomservices.com/basic-s...eld-data-client-side

Thanks

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

More
4 years 6 months ago #135147 by Martijn Hartong
Replied by Martijn Hartong on topic Events Booking 3.12.2 released
Hi,

I’m actually trying to prevent target group X to register to an event for target group Y. With Event Custom Fields checkboxes the target group(s) is set. In the registration form a Custom Field XY value is replaced in the register template default.php. During registration a certain group is selected on which X or Y depends. I would like to match the set value against the selected value. If X is not X or XY then registration is not applicable. Hope this helps…

Thanks

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

More
4 years 6 months ago #135183 by Martijn Hartong
Replied by Martijn Hartong on topic Events Booking 3.12.2 released
Hi,

I am trying to override jQuery validationEngine from my template script, but even messages do not change:


$("#adminForm").validationEngine({'custom_error_messages' : {
'#text1' : {
'required': {
'message': "Please do something!"
}
}
}
});


Where and how to override jQuery validationEngine?

Thanks

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

  • Tuan Pham Ngoc
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
4 years 6 months ago #135184 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking 3.12.2 released
Hello

1. Get a copy of the file media/com_eventbooking/assets/js/validate/js/jquery.validationEngine-lang.js , rename it to override.jquery.validationEngine-lang.min.js

2. Modify that file to meet your need

3. Upload that file to media/com_eventbooking/assets/js/validate/js/ folder (maybe minify it before uploading if you want)

Then check the result to see if it works

Tuan

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

More
4 years 6 months ago #135200 by Martijn Hartong
Replied by Martijn Hartong on topic Events Booking 3.12.2 released
Hi,

Problem solved with the following validation rules:

validate[custom[notEqualX]],validate[custom[notEqualY]]

"notEqualX": {
"func": function(field, rules, i, options){
return ( $('#targetgroup').val() == “XY” || $('#field_groupx’).is(':hidden') || $(‘#groupx’).val() == $(‘#targetgroup).val()) ? true : false;
},
"alertText": "* This is not a X event."
},
"notEqualY": {
"func": function(field, rules, i, options){
return ( $('#targetgroup').val() == "XY" || $('#field_groupy’).is(':hidden') || $(‘#groupy).val() == $('#targetgroup').val()) ? true : false;
},
"alertText": "* This is not an Y event."
},

Thanks!

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

  • Tuan Pham Ngoc
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
4 years 6 months ago #135201 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Events Booking 3.12.2 released
OK. So just want to make it clear, you were able to implement this change using override JS file, correct?

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