Home
/
Kits
/
Country Selector

Add a searchable country selector to any form input

Turns any text input into a filterable country dropdown. Search by name, select with a click or keyboard, and submit only the country name to your form. No external requests. No dependencies.

Tutorial coming soon
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Webflow has no built-in country selector. Building one from scratch means sourcing a country list, writing search and filter logic, handling keyboard navigation, managing dropdown positioning, and ensuring the submitted value is clean and consistent - all in custom JavaScript. Most solutions reach for a third-party library that adds unnecessary weight, external dependencies, and in many cases cookies or tracking.

The Fractional Country Selector Kit solves this with a single lightweight script and a single custom attributes applied directly in the Webflow Designer.

Here is what you need to know:

  • The Fractional Country Selector Kit works by turning any standard text input inside a Webflow form into a searchable country selector. As the user types a filtered dropdown appears beneath the input showing matching countries. The country list is bundled directly into the kit - no external API calls, no runtime dependencies, and no risk of a third-party service going down and breaking your form.
  • Search is prioritised intelligently. Countries whose names start with the query appear first, followed by countries whose names contain the query anywhere. Typing fr shows France at the top before any other contains matches.
  • Only the country name is ever submitted. No flag emogi, ISO code, or anything else is ever added to your form. Your Zapier flows, Make automations, and Airtable integrations receive exactly what they expect.
  • Flags and ISO codes are optional display elements in the dropdown. Enable or disable each independently with a single attribute. Flags are generated entirely from Unicode - no image requests, no external assets.
  • Keyboard navigation is fully supported. Arrow keys move through the dropdown, Enter selects, and Escape closes it. The kit is accessible by default.
  • Two built-in dropdown themes are available for use - light and dark - controlled by a single attribute. Both use consistent padding, border radius, and hover states so the dropdown looks intentional out of the box regardless of which theme fits your site. If you do not add a theme attribute, the kit will default to the light theme.
  • Multiple instances work independently on the same page. A form with a billing country and a shipping country picker each operates completely in isolation. The 'Target' attribute creates the indidivual instance.
  • The Fractional Country Selector Kit is fully GDPR, CCPA, and PIPEDA compliant. It sets no cookies, makes no external requests, and collects no personal data of its own.

This Kit is GDPR Compliant

Fractional Kits are classified as essential functionality. They set no cookies, uses no localStorage, makes no external requests, and collects zero personal data. They can be safely excluded from your cookie consent configuration.

Step 1

Add this <script> inside the <head> tag of your page or project

This script is the universal script: you only need to include it once, even if you have multiple instances on the page.

<!-- This script is to add a searchable country picker to a Webflow form - Managed by Fractional Creative -->
<script data-fc="country-picker" data-fc-version="1.0.0" data-fc-consent="essential" src="https://cdn.fractionalcreative.io/kits@1/kits.js"></script>
Copy Script
Copied!
Step 2

Add this required custom attribute

Target your input
Define what form input should be a country selector
Optional fields
Optional Step(s)
Change to the dark theme
Change the default a dark theme
Hide the country flags
Change the default to not show a country flag
Hide the country code
Change the default to not show a country code

Need support?

Our team will be happy to assist you.

Tutorial Coming Soon
Get Support

Without the Kit

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

With the Kit

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Frequently asked questions

Everything you’re probably wondering.

Does this require an external API or internet connection to load the country list?
What value gets submitted with the form?
What happens if the user types something but does not select a country?
Can I use it on multiple fields on the same form?
Do flags work on all devices?
Which theme should I use?
Can I have multiple country pickers on the same form?
Does it work with Webflow form validation?
Does keyboard navigation work?
What happens if the script fails to load?
Is it GDPR compliant?

Need more than a Webflow Kit? Hire a Digital Agency.

Fractional Creative is a digital agency. We build Webflow websites, design brands, manage Meta and Google ad campaigns, and build custom automations, and more. Start saving with Fractional services.

Young man with dreadlocks sitting on a wooden bench outdoors typing on a laptop, with green foliage in the background.