Inserting and Changing Pulldown Box Items

I'm creating a Pulldown box for selecting one of around 90 UK counties. There doesn't seem to be a definitive list available, so I may have to insert or delete names as I find errors. Is there any way I can do this and keep it in alphabetical order, without having to re-enter all the subsequent list items?

  • The pulldown system as supplied is not designed for large pulldowns.

    When I create these for clients, I use the form_custom_field_type_manager function to create a custom field type that typically populates the pulldown from a file on the file system.

  • Might the source of your County lists look like ->

    GB BR1 Plaistow and Sundridge England ENG 00 Bromley London Boro AF 51.4166 0.0183 6

    - This is from some experimenting I was doing for a client towards similar setups for French 'counties' (they call them "departments")

    Mind you - the France layout had input for the postal-code - eg 12345 - which then translated to the Department and City with no further input..

     

  • Thanks Kevin. I'll have to look into that later. It might be a bit beyond my skills, and take too long to learn at the moment.

    DhrupDeScoop, It's simpler than that. Just a list like "Aberdeenshire, Anglesey, Angus, Angus, Argyllshire...etc.". The problem is, no one seem to have a definitive list, and the more I search the internet, the more I find different versions, and people complaining that there's not a definitive list!

  • ;-P I dare say that the source I have used might just be an official definitive list..Though I believe this is a more comprehensive listing than just the Counties. Here's a teaser for "Aberdeenshire" (if it all makes sense)-->

    country code      : iso country code, 2 characters
    postal code       : varchar(10)
    place name        : varchar(180)
    admin name1       : 1. order subdivision (state) varchar(100)
    admin code1       : 1. order subdivision (state) varchar(20)
    admin name2       : 2. order subdivision (county/province) varchar(100)
    admin code2       : 2. order subdivision (county/province) varchar(20)
    admin name3       : 3. order subdivision (community) varchar(100)
    admin code3       : 3. order subdivision (community) varchar(20)
    latitude          : estimated latitude (wgs84)
    longitude         : estimated longitude (wgs84)
    accuracy          : accuracy of lat/lng from 1=estimated to 6=centroid

    GB AB12 North Kincardine Scotland SCT 00 Aberdeenshire QB 57.0692 -2.1516 6
    GB AB13 Lower Deeside Scotland SCT 00 Aberdeen City QA 57.107 -2.2372 6
    GB AB13 Westhill and District Scotland SCT 00 Aberdeenshire QB 57.1485 -2.2888 6
    GB AB14 Westhill and District Scotland SCT 00 Aberdeenshire QB 57.1485 -2.2888 6
    GB AB14 Stonehaven and Lower Deeside Scotland SCT 00 Aberdeenshire QB 57.0979 -2.2915 6
    GB AB14 Lower Deeside Scotland SCT 00 Aberdeen City QA 57.1005 -2.2711 6
    GB AB15 Midstocket/Rosemount Scotland SCT 00 Aberdeen City QA 57.1493 -2.1352 6
    GB AB15 Dyce/Bucksburn/Danestone Scotland SCT 00 Aberdeen City QA 57.1811 -2.2689 6
    GB AB15 Kingswells/Sheddocksley Scotland SCT 00 Aberdeen City QA 57.1538 -2.1924 6
    GB AB15 Westhill and District Scotland SCT 00 Aberdeenshire QB 57.1639 -2.268 6
    GB AB15 Lower Deeside Scotland SCT 00 Aberdeen City QA 57.1195 -2.1902 6
    GB AB15 Hazlehead/Ashley/Queens Cross Scotland SCT 00 Aberdeen City QA 57.1406 -2.1498 6
    GB AB15 Airyhall/Broomhill/Garthdee Scotland SCT 00 Aberdeen City QA 57.1295 -2.1471 6
    GB AB16 Kingswells/Sheddocksley Scotland SCT 00 Aberdeen City QA 57.1542 -2.1671 6
    GB AB16 Hilton/Stockethill Scotland SCT 00 Aberdeen City QA 57.1596 -2.1392 6
    GB AB16 Northfield Scotland SCT 00 Aberdeen City QA 57.1644 -2.1582 6
    GB AB16 Dyce/Bucksburn/Danestone Scotland SCT 00 Aberdeen City QA 57.1703 -2.1757 6
    GB AB16 Midstocket/Rosemount Scotland SCT 00 Aberdeen City QA 57.1536 -2.147 6
    GB AB21 Bridge of Don Scotland SCT 00 Aberdeen City QA 57.2074 -2.1335 6
    GB AB21 East Garioch Scotland SCT 00 Aberdeenshire QB 57.2409 -2.231 6
    GB AB21 Dyce/Bucksburn/Danestone Scotland SCT 00 Aberdeen City QA 57.1925 -2.1892 6
    GB AB21 Mid Formartine Scotland SCT 00 Aberdeenshire QB 57.3066 -2.2338 6
    GB AB22 Dyce/Bucksburn/Danestone Scotland SCT 00 Aberdeen City QA 57.1808 -2.135 6
    GB AB22 Bridge of Don Scotland SCT 00 Aberdeen City QA 57.1884 -2.1162 6
    GB AB23 Ellon and District Scotland SCT 00 Aberdeenshire QB 57.2774 -2.0556 6
    GB AB23 Mid Formartine Scotland SCT 00 Aberdeenshire QB 57.2473 -2.0798 6
    GB AB23 Bridge of Don Scotland SCT 00 Aberdeen City QA 57.1884 -2.0948 6
    GB AB24 Northfield Scotland SCT 00 Aberdeen City QA 57.173 -2.147 6
    GB AB24 Hilton/Stockethill Scotland SCT 00 Aberdeen City QA 57.1675 -2.1276 6
    GB AB24 George St/Harbour Scotland SCT 00 Aberdeen City QA 57.1548 -2.0949 6
    GB AB24 Tillydrone/Seaton/Old Aberdeen Scotland SCT 00 Aberdeen City QA 57.1668 -2.1027 6
    GB AB24 Midstocket/Rosemount Scotland SCT 00 Aberdeen City QA 57.1597 -2.118 6
    GB AB25 Hazlehead/Ashley/Queens Cross Scotland SCT 00 Aberdeen City QA 57.1463 -2.123 6
    GB AB25 George St/Harbour Scotland SCT 00 Aberdeen City QA 57.1534 -2.1048 6
    GB AB25 Hilton/Stockethill Scotland SCT 00 Aberdeen City QA 57.1615 -2.1201 6
    GB AB25 Midstocket/Rosemount Scotland SCT 00 Aberdeen City QA 57.1524 -2.1175 6
    GB AB30 Mearns Scotland SCT 00 Aberdeenshire QB 56.8474 -2.4768 6
    GB AB31 Stonehaven and Lower Deeside Scotland SCT 00 Aberdeenshire QB 57.0653 -2.3604 6
    GB AB31 North Kincardine Scotland SCT 00 Aberdeenshire QB 57.0541 -2.2866 6
    GB AB31 Aboyne, Upper Deeside and Donside Scotland SCT 00 Aberdeenshire QB 57.1199 -2.6506 6
    GB AB31 Lower Deeside Scotland SCT 00 Aberdeen City QA 57.1081 -2.3452 6
    GB AB31 Banchory and Mid Deeside Scotland SCT 00 Aberdeenshire QB 57.0542 -2.5139 6
    GB AB32 East Garioch Scotland SCT 00 Aberdeenshire QB 57.1865 -2.3308 6
    GB AB32 Westhill and District Scotland SCT 00 Aberdeenshire QB 57.1548 -2.3174 6
    GB AB32 Lower Deeside Scotland SCT 00 Aberdeen City QA 57.1312 -2.3357 6
    GB AB33 Huntly, Strathbogie and Howe of Alford Scotland SCT 00 Aberdeenshire QB 57.2289 -2.7153 6
    GB AB33 Aboyne, Upper Deeside and Donside Scotland SCT 00 Aberdeenshire QB 57.2029 -2.8846 6
    GB AB34 Banchory and Mid Deeside Scotland SCT 00 Aberdeenshire QB 57.0709 -2.7047 6
    GB AB34 Aboyne, Upper Deeside and Donside Scotland SCT 00 Aberdeenshire QB 57.0993 -2.8399 6
    GB AB35 Aboyne, Upper Deeside and Donside Scotland SCT 00 Aberdeenshire QB 57.0388 -3.1461 6
    GB AB36 Aboyne, Upper Deeside and Donside Scotland SCT 00 Aberdeenshire QB 57.197 -3.0688 6
    GB AB39 North Kincardine Scotland SCT 00 Aberdeenshire QB 57.0326 -2.1728 6
    GB AB39 Mearns Scotland SCT 00 Aberdeenshire QB 56.9195 -2.3244 6
    GB AB39 Stonehaven and Lower Deeside Scotland SCT 00 Aberdeenshire QB 56.9648 -2.222 6
    GB AB41 Turriff and District Scotland SCT 00 Aberdeenshire QB 57.4551 -2.2822 6
    GB AB41 Central Buchan Scotland SCT 00 Aberdeenshire QB 57.461 -2.0998 6
    GB AB41 Mid Formartine Scotland SCT 00 Aberdeenshire QB 57.3717 -2.202 6
    GB AB41 Ellon and District Scotland SCT 00 Aberdeenshire QB 57.366 -2.0593 6
    GB AB42 Central Buchan Scotland SCT 00 Aberdeenshire QB 57.5155 -2.0315 6
    GB AB42 Peterhead South and Cruden Scotland SCT 00 Aberdeenshire QB 57.4648 -1.8341 6
    GB AB42 Peterhead North and Rattray Scotland SCT 00 Aberdeenshire QB 57.5173 -1.807 6
    GB AB42 Ellon and District Scotland SCT 00 Aberdeenshire QB 57.4048 -1.9637 6
    GB AB43 Peterhead North and Rattray Scotland SCT 00 Aberdeenshire QB 57.6206 -1.9209 6
    GB AB43 Fraserburgh and District Scotland SCT 00 Aberdeenshire QB 57.6802 -2.0072 6
    GB AB43 Central Buchan Scotland SCT 00 Aberdeenshire QB 57.5911 -2.1243 6
    GB AB43 Troup Scotland SCT 00 Aberdeenshire QB 57.6678 -2.1408 6
    GB AB44 Troup Scotland SCT 00 Aberdeenshire QB 57.6683 -2.4926 6
    GB AB44 Banff and District Scotland SCT 00 Aberdeenshire QB 57.6646 -2.5211 6
    GB AB45 Banff and District Scotland SCT 00 Aberdeenshire QB 57.6526 -2.6127 6
    GB AB45 Troup Scotland SCT 00 Aberdeenshire QB 57.6474 -2.4056 6
    GB AB51 Huntly, Strathbogie and Howe of Alford Scotland SCT 00 Aberdeenshire QB 57.2413 -2.5393 6
    GB AB51 East Garioch Scotland SCT 00 Aberdeenshire QB 57.2322 -2.3497 6
    GB AB51 West Garioch Scotland SCT 00 Aberdeenshire QB 57.28 -2.449 6
    GB AB51 Mid Formartine Scotland SCT 00 Aberdeenshire QB 57.3443 -2.3371 6
    GB AB51 Westhill and District Scotland SCT 00 Aberdeenshire QB 57.1783 -2.5211 6
    GB AB51 Turriff and District Scotland SCT 00 Aberdeenshire QB 57.4069 -2.4476 6
    GB AB51 Inverurie and District Scotland SCT 00 Aberdeenshire QB 57.2844 -2.3807 6
    GB AB52 West Garioch Scotland SCT 00 Aberdeenshire QB 57.3439 -2.6006 6
    GB AB52 Huntly, Strathbogie and Howe of Alford Scotland SCT 00 Aberdeenshire QB 57.3467 -2.6996 6
    GB AB52 Inverurie and District Scotland SCT 00 Aberdeenshire QB 57.2869 -2.3757 6
    GB AB53 Banff and District Scotland SCT 00 Aberdeenshire QB 57.5458 -2.5608 6
    GB AB53 Mid Formartine Scotland SCT 00 Aberdeenshire QB 57.417 -2.3164 6
    GB AB53 Turriff and District Scotland SCT 00 Aberdeenshire QB 57.5138 -2.4179 6
    GB AB53 Troup Scotland SCT 00 Aberdeenshire QB 57.5969 -2.3637 6
    GB AB53 Central Buchan Scotland SCT 00 Aberdeenshire QB 57.5244 -2.2154 6
    GB AB54 Turriff and District Scotland SCT 00 Aberdeenshire QB 57.4955 -2.6275 6
    GB AB54 Banff and District Scotland SCT 00 Aberdeenshire QB 57.5641 -2.6476 6
    GB AB54 Huntly, Strathbogie and Howe of Alford Scotland SCT 00 Aberdeenshire QB 57.4255 -2.7838 6
    GB AB54 West Garioch Scotland SCT 00 Aberdeenshire QB 57.3686 -2.6705 6
    GB AB55 Huntly, Strathbogie and Howe of Alford Scotland SCT 00 Aberdeenshire QB 57.4804 -2.9666 6
    GB AB56 Banff and District Scotland SCT 00 Aberdeenshire QB 57.6692 -2.7782 6
    GB AB99 Kincorth/Loirston Scotland SCT 00 Aberdeen City QA 57.1113 -2.094 6
    GB DD10 Mearns Scotland SCT 00 Aberdeenshire QB 56.818 -2.3266 6
    GB DD9 Mearns Scotland SCT 00 Aberdeenshire QB 56.821 -2.6289 6

  • Thanks, but that's far more complicated than I need DhrupDeScoop! That's a list of postcode areas.

    I've decided to simplify the options to regions of Britain, so it's now a much shorter list. It's not so precise, but makes the information more usable for what I want to do. I may need to add a counties list later though!

Form and related plugins

Form and related plugins

User-generated content, flexible user and group profiles, registration forms, custom file forms