• Resolved Oded Talmon

    (@odedta)


    Hello,
    Your plugin is failing to load states when there is more than one Contact Form 7 on the page with the country and state fields.

    I’ve had to update the source code of the plugin to fix it, I’m adding instructions on how to fix, please add this fix and push so we can update this plugin.

    country-state-city-auto-dropdown/assets/js/script.js
    Change line 6
    From:
    var cnt=$("select.country_auto").children("option:selected").attr('data-id');

    To:
    var cnt = $( this ).find( 'option:selected' ).attr( 'data-id' );

    You’ve actually used this code on the states code but not in the countries code.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi ,

    Please use the updated version. It has been fixed and added new features too.

    Thanks,
    Trusty Plugins Team

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin not working when more than one form appears on the page’ is closed to new replies.