Country field autocomplete

Add standardized country selection to your Drupal site with ease. The Country module provides a dedicated field type for Drupal core's official country list — no configuration of country options needed.

Features

  • Core country list – Uses the official country list provided by Drupal core, always up-to-date
  • Multiple widget options – Select list, checkboxes, radio buttons, or autocomplete
  • Views integration – Sort and filter plugins for building country-aware listings
  • Facets support – Enable country-based faceted search out of the box
  • Feeds integration – Import country data from external sources
  • Form API element – Use #type => 'country' in custom forms
  • Token support – Dynamic country values in your content
  • Standards-based – Uses ISO 3166-1 alpha-2 country codes

Why Use Country?

A proper semantic field type with built-in country data that stays in sync with Drupal core. Integrates with Views, Facets, Tokens, Feeds, and Form API out of the box.

Integration

  • Flags – Add country flag icons to your Country field selection lists
  • Tagify - Provides a more user friendly select list

Documentation

Full documentation is available in the README file.

🤖 Assisted Development

This module is maintained with the help of AI assistants for code generation, review, testing, and documentation. All code is carefully reviewed by the maintainers to ensure that quality and security standards are met.

Supporting organizations: 
Maintenance and development

Project information

Releases