Country State City Dropdown CF7

Plugin Banner

Country State City Dropdown CF7

by Trusty Plugins

Download
Description

Country dropdown for contact form 7 with dynamic states and cities. Country State City Dropdown CF7 plugin is an add-on of Contact Form 7 plugin to show country, state and city dropdown. This plugin add three new form tag fields that is (form-tag: country drop-down) and (form-tag: state dropdown) and (form-tag: city dropdown) in Contact form 7.

Buy PRO    See Live Demo(PRO)

Country State City dynamic dropdown PRO supports to any form.

Buy PRO

Features Of PRO Plugin

1. Supports to any type of Form (WP Forms, Ninja, Divi Contact Module, Elementor Module, Custom PHP Form etc).

2. Select Default Country with User’s IP.

3. Select Default Specific Country from list of All Countries.

4. Select Specific one or more Countries to display in the dropdown.

5. If State/City is missing then shows input text field to enter manually.

6. Have feature to add missing states/cities manually.

7. Multiple forms on same page.

8. Multiple country/state/city fields in same form.

9. Append only Cities from Country Dropdown.

10. See more at Official Website Trusty Plugins

This helps you in creating a country drop-down list with state and city. The tag field will automatically add countries name in standard drop-down field of contact form 7. State and city auto populate according to selected country from country dropdown field.

How to add the fields in the contact form 7
1.) Once you have installed, activated the Country State City Auto Dropdown plugin.
2.) Add the form-tag “country drop-down” and “state dropdown” and “city dropdown” to your form and save the changes.

Optional: if you use two location sets in one form, add the same group option on each tag, e.g. [country_auto* country-shipping group:shipping].

City is optional — country + state only works if you omit the city drop-down tag.

Use the tag generator to set a custom placeholder (enter text and check “Use this text as the placeholder”).

Requirments:
* Contact form 7 must be active plugin.

Recommended Plugins

The following plugin is recommended :
* Contact Form 7 by takayukister – With Conact Form 7, you can use this plugin. Without contact form 7 this plugin have no needs.

  1. Upload the entire country-state-city-dropdown-cf7 folder to the /wp-content/plugins/ directory.
  2. Kindly make sure ‘contact form 7’ plugin active before activate this plugin.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Add form tags in desired contact form

You will find three new field types in your contact form 7 field list.

  1. screenshot-1.png

    screenshot-1.png

  2. screenshot-2.png

    screenshot-2.png

  3. screenshot-3.png

    screenshot-3.png

How to set preferred countries list?

All countries display in the free version. Filtering countries, default country, and IP detection are available in the PRO version.

How to set State list?

All States will display automatically according to selected country from dropdown field.

How to set City list?

All Cities will display automatically according to selected country and state from dropdown field.

Will updating delete my data?

No. Plugin updates keep your existing country/state/city tables and form tags. To load the newer world dataset (2.8.1+), use Settings Country State City Dropdown “Update to latest dataset” (optional; replaces location rows only).

Where does the country / state / city data come from?

Location lists are based on the open countries-states-cities-database project, licensed under the Open Database License (ODbL). See that project for full attribution and share-alike terms.

No States list and city list found

By aishwaryalakshmi on February 6, 2025

I’m using the last version (2.7.4) and the Country field works perfect, but States list and City list not found.

Error message not showing

By Sudhamsh (sudhasmh) on December 12, 2024

If I don't select a country from the dropdown, no error is shown, and the form is submitted without displaying any error, even though I have marked it as a required field in Contact Form 7

This Plugin Helps Me

By miminou on March 2, 2024

Thank you very much ^^

Super!

By drass on March 3, 2023

Great support! Very fast

Huge Time Saver!

By (yelgnissm) on February 21, 2023

This was always so cumbersome and finally somebody cared enough to make a plugin that does it. Really helpful with Maps and especially directories.

Great Plugin

By lgburg2022 on June 13, 2022

Thanks for the great plugin. Works great

Great one..!

By Abid KP (abidkp11) on May 16, 2022

Very useful plugin

Awesome Plugin to use default country selection

By hostingadventures on February 26, 2022

I wanted to show an application form on my website where the default country selected should be India and then, there should be two other drop downs to select any state of India and then city based on that. Country State City Dropdown is the only plugin that does this task. I spent countless hours trying to use conditional logic etc until I found this plugin. Thank you so much for saving my time and making me achieve what I wanted.

Excellent Plugin!

By v2menon on February 13, 2022

Easy to use and a very useful plugin.

Top!

By kvaleirus on February 11, 2022

Only one!

2.8.2

  • Fixed CF7 submit: re-enable state/city dropdowns before submit so selected values are included in the form POST

2.8.1

  • World location dataset refreshed (dr5hn CSC): 250 countries, 5,308 states, 152,970 cities
  • India: West Bengal and Ladakh included in seed (no Patch required for new data)
  • Settings: “Update to latest dataset” for existing sites (opt-in replace)
  • Data attribution: Open Database License (ODbL) — countries-states-cities-database
  • Admin notice when a newer geography pack is available

2.8.0

  • Safer upgrades for existing sites: never re-seeds or renames tables when data already exists
  • Adds database indexes for faster state/city AJAX
  • Loads front-end script only when Contact Form 7 is present (filter to force legacy all-pages load)
  • Translatable placeholders and validation messages
  • Optional group:xxx tag option + smarter pairing for multiple location fields
  • Settings page: data health, install missing data, softer Pro link
  • Security/hardening: fixed SQL prepare usage, capability checks, sanitization
  • Client-side AJAX cache for states/cities (faster when revisiting a country)
  • Disabled + loading states on dependent dropdowns (aria-busy)
  • Tag generator: placeholder, ID, class, and group fields
  • Documented country + state only mode (city tag optional)
  • Custom placeholders via CF7 placeholder option

2.7.6

  • Form Tag generator upgraded to version 2 [contact form 7]

2.7.5

  • Validation error issue has been fixed.

2.7.4

  • State, City List not appending (Issue Fixed)

2.7.3

  • Plugin vulnerability Fixed

2.7.2

  • vulnerability Fixed

2.7.1

  • ABSPATH function added to files

2.7

  • Added support to multiple CF7 forms on page
  • Added Missing ‘West Bengal’, ‘Ladakh’ State/Cities Updated
  • A Patch feature added to fix missing State/Cities

2.6

  • Javascript Bug Fixed

2.5

  • Bug Fixed

2.4

  • internationalization and localization

2.3

  • Bug Fixed

2.2

  • Plugin’s PRO version has been released

2.1

  • Fixed the issue of Alphabetical order of States/Cities

2.0.0

  • Added many more missing cities
  • Added missing States

1.0.0

  • First version of plugin.
Back to top