<p>I know this is politically sensitive to some (!) — we have a website where we'd be able to select the different countries in the United Kingdom via the country field.</p>
<p>So, as well as my client being able to select 'Germany' as a project country, I'd like to be able to select 'England' or 'Scotland' rather than being forced to use 'United Kingdom'!</p>
<p>I'm guessing it means customising the 'country' model underpinning the field, but no idea where to start with that!</p>
<p>Running Craft 5.4.9 in this install...</p>

CC BY-SA 4.0
2024-10-25T02:39:46.787Z
What kind of data that your "Country" option will have, like the current Country Field will have 
  #countryCode: "AF",
  #name: "Afghanistan",
  #threeLetterCode: "AFG",
  #numericCode: "004",
  #currencyCode: "AFN",
  #locale: "en",
if your custom field is going to only have 2 kind of data, then you might want to create custom field that extends Dropdown instead of Country
Nixxian365
CC BY-SA 4.0
2024-10-31T20:28:45.453Z
It seems that Scotland, England, Wales etc do not have ISO codes. I want my client to be able to select ANY country in the world, but ALSO Scotland, England etc...
dezbat
CC BY-SA 4.0
2024-10-31T20:32:14.210Z
Although ISO 3166-2:GB (https://en.wikipedia.org/wiki/ISO_3166-2:GB#Second-level_subdivisions) does allow for subdivisions of the United Kingdom... Im still unclear how to extract this from the country field though :)
dezbat
<field><custom-field><craft5>
Add the UK countries (England, Scotland etc) to the 'Country' field in Craft 5?
# Add the UK countries (England, Scotland etc) to the 'Country' field in Craft 5?

(Asked by: username_0 on 2024-10-24)

I know this is politically sensitive to some (!) — we have a website where we'd be able to select the different countries in the United Kingdom via the country field.

So, as well as my client being able to select 'Germany' as a project country, I'd like to be able to select 'England' or 'Scotland' rather than being forced to use 'United Kingdom'!

I'm guessing it means customising the 'country' model underpinning the field, but no idea where to start with that!

Running Craft 5.4.9 in this install...

**Tags:** field, custom-field, craft5
> **Comments:**
> **username_1**: What kind of data that your "Country" option will have, like the current Country Field will have    #countryCode: "AF",   #name: "Afghanistan",   #threeLetterCode: "AFG",   #numericCode: "004",   #currencyCode: "AFN",   #locale: "en", if your custom field is going to only have 2 kind of data, then you might want to create custom field that extends Dropdown instead of Country  
> **username_0**: It seems that Scotland, England, Wales etc do not have ISO codes. I want my client to be able to select ANY country in the world, but ALSO Scotland, England etc...  
> **username_0**: Although ISO 3166-2:GB (https://en.wikipedia.org/wiki/ISO_3166-2:GB#Second-level_subdivisions) does allow for subdivisions of the United Kingdom... Im still unclear how to extract this from the country field though :)  

---

## 0 answers

