• Resolved redlaw03

    (@aetas03)


    Hi

    I have been trying for a while now to add the maximum locations (select2 field) and maximum categories a user can select but cant seem to find the answer in the .php files or includes. My question is how can I limit how many categories and locations a user can select?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter redlaw03

    (@aetas03)

    I have tried `$(document).ready(function () {
    $(“#atbdp_locations”).select2({
    maximumSelectionLength: 20
    });
    });` but it did not seem to work

    Plugin Support Rafiz Sejim

    (@rafizsejim)

    Hello @aetas03

    Thank you for reaching us out.

    Please try using the following code, I hope that should work.

      jQuery(document).ready(function($){
        $("#at_biz_dir-location").select2({
          maximumSelectionLength: 20
        });
      })

    Regards,

    Thread Starter redlaw03

    (@aetas03)

    @rafizsejim thanks worked

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set max location and categories user can select on add listing page’ is closed to new replies.