• Resolved dplista

    (@dplista)


    Hi, any idea if I can use Multiple instances for the country drop-down?
    Like 2 times with different country filter list?
    Thanks in advance.-

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @dplista,
    Thank you for using this plugin.
    If you want more than one dropdown. You need to add the dropdown shortcode again. It will display the dropdown.
    But if you are looking for each dropdown default selected country value is different that’s not possible according to current code.
    Yes, it will sent different value in email content. If the user selects different value in each dropdown.
    The dropdown default value means, either you selected IP based country or added initial country from plugin settings.

    I hope this is useful to you.

    Regards
    Narinder.

    Thread Starter dplista

    (@dplista)

    Hello Narinder, and thank you for your reply.
    I really likes your plugin and I want to use.
    And any tips to hide countries by CSS?
    I need to show 2 dropdowns, 1 with all the countries and 1 with a few countries, I was trying to hide countries by CSS but is not working for me.
    Maybe, this can be a solution?
    And any idea of how to shows empty the dropdowns? For default is showing Afganistan for me and can look better without a selection, right?
    Thank you again.-

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @dplista,
    if you are a developer, you can assign each field unique id. Id attribute available in contact form 7 fields creation popup.
    On the bases of the field id you can replicate the plugin JS code in your active theme.

    E.g
    $(“#fieldID”).countrySelect({
    //defaultCountry: “jp”,
    //onlyCountries: [‘us’, ‘gb’, ‘ch’, ‘ca’, ‘do’],
    //preferredCountries: [‘ca’, ‘gb’, ‘us’]
    });

    $(“#fieldID”).intlTelInput({
    //defaultCountry: “jp”,
    //onlyCountries: [‘us’, ‘gb’, ‘ch’, ‘ca’, ‘do’],
    //preferredCountries: [‘ca’, ‘gb’, ‘us’]
    });

    For more detail. Please plugin assets/cusotm_script.js file.

    I hope it will help you. The empty option feature is not available in the script.

    Regards
    Narinder.

    Thread Starter dplista

    (@dplista)

    Hi Narinder and thank you for your help.
    I’m going to try this!
    Basically, I try to add two country drop-down in a form.
    One to the nationality, and the second one like for which of us offices are close to you…
    For that reason, my second country drop-down just need to show a few countries and not all…
    I’m trying to setup this with your plugin because looks amazing.
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple instances’ is closed to new replies.