Hi,
I am using EventOn on a client’s site and they are happy with it but we run into small issues often. Well, the recent issue was something I thought I should report.
Using Action User, on Event submission form, when we select “Create New” for Location or Organization; it doesn’t matter if we enter info or not the JS validator will still include the Location dropdown in validation which I think it shouldn’t.
For a quickfix, I modified /eventon-action-user/assets/js/au_script_f.js Line # 353
Original:
if ( form.find('.evoau_organizer_select option:selected').val() == '-' ) {
My Patch:
if ( !form.find('.organizerSelect .enterownrow').is(':visible') && form.find('.evoau_organizer_select option:selected').val() == '-' ) {
I know you guys might have something for this, if not, I am glad I helped discover this.
Also, there should be prominent options for which field the admin wants to be required or not.
Regards,
Junaid Ahmed
Mar 7,2017 AT 9:29AM - 4 years ago -Update: The code I shared is for the OrganizerĀ section which is identical to the Location.
HiĀ Junaid,
Thanks for sharing.
I will alert Ashan of this.
Seems like you are running an older version of actionUser addon are you on v2.0.12? Because that code is not there in the latest version.
When was the last update released, I downloaded and updated a fresh copy of Action User last week or maybe I missed something.
http://www.myeventon.com/documentation/latest-versions-of-addons/
http://www.myeventon.com/documentation/au-changelog/
I appreciate the information.
I haven’t updated the add-on yet but by skipping through the code, I think you totally abandoned validation of the organizer and location fields. Am I right? or did you handle that somewhere else?
Thanks
It is handled in a different way. You need to update to latest version which process this correctly.