CYBER WEEK

35% OFF ADDONS CODE EVOCYBER2020

X
30463

Ticket #30463 Public [Closed]

After "Create New Location", JS still validates the dropdown Location

  • 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

    BY: Junaid - Mar 7,2017 AT 9:29AM - 3 years ago
    • By: Junaid Mar 7,2017 AT 9:31AM - Posted 3 years ago - #30465

      Update: The code I shared is for the OrganizerĀ section which is identical to the Location.

    • By: Ashish Rai Mar 8,2017 AT 12:53AM - Posted 3 years ago - #30531

      HiĀ Junaid,

      Thanks for sharing.

      I will alert Ashan of this.

    • By: Ashan Perera Mar 8,2017 AT 12:36PM - Posted 3 years ago - #30626

      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.

    • By: Junaid Mar 8,2017 AT 12:45PM - Posted 3 years ago - #30629

      When was the last update released, I downloaded and updated a fresh copy of Action User last week or maybe I missed something.

    • By: Ashan Perera Mar 8,2017 AT 1:45PM - Posted 3 years ago - #30643

      http://www.myeventon.com/documentation/latest-versions-of-addons/

      http://www.myeventon.com/documentation/au-changelog/

    • By: Junaid Mar 8,2017 AT 1:56PM - Posted 3 years ago - #30645

      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

    • By: Ashan Perera Mar 9,2017 AT 4:33PM - Posted 3 years ago - #30784

      It is handled in a different way. You need to update to latest version which process this correctly.

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON