I needed a UK County dropdown select which I had to create manually.
It took me a while to do it so I thought I'd share it here in case anyone else needs a UK County dropdown.
Here's the text I use in the Field Elements box
Code:
ENGLAND::ENGLAND%% Avon::Avon%% Bath_ NESomerset::Bath & NE Somerset%% Bedfordshire::Bedfordshire%% Berkshire::Berkshire%% Blackburn_with_Darwen::Blackburn with Darwen%% Blackpool::Blackpool%% Bournemouth::Bournemouth%% Bracknell Forest::Bracknell Forest%% Brighton_Hove::Brighton & Hove%% Buckinghamshire::Buckinghamshire%% Cambridgeshire::Cambridgeshire%% Cheshire_East::Cheshire East%% CheshireWest_Chester::Cheshire West & Chester%% City of Bristol::City of Bristol%% Kingston_Upon_Hull::City of Kingston Upon Hull%% Cleveland::Cleveland%% Cornwall::Cornwall%% County_Durham::County Durham%% Cumbria::Cumbria%% Darlington::Darlington%% Derby::Derby%% Derbyshire::Derbyshire%% Devon::Devon%% Dorset::Dorset%% Durham::Durham%% East_Sussex::East Sussex%% Essex::Essex%% Gloucestershire::Gloucestershire%% Halton::Halton%% Hampshire::Hampshire%% Hartlepool::Hartlepool%% Herefordshire::Herefordshire%% Hertfordshire::Hertfordshire%% Isle_of_Man::Isle of Man%% Isles_of_Scilly::Isles of Scilly%% Isle_of_Wight::Isle of Wight%% Kent::Kent%% Lancashire::Lancashire%% Leicester::Leicester%% Leicestershire::Leicestershire%% London::London%% Luton::Luton%% Medway::Medway%% Merseyside::Merseyside%% Middlesex::Middlesex%% Middlesborough::Middlesborough%% Milton Keynes::Milton Keynes%% Norfolk::Norfolk%% Northamptonshire::Northamptonshire%% NELincolnshire::North East Lincolnshire%% Northumberland::Northumberland%% North_Humberside::North Humberside%% North_Somerset::North Somerset%% North_Yorkshire::North Yorkshire%% Nottingham::Nottingham%% Nottinghamshire::Nottinghamshire%% Oxfordshire::Oxfordshire%% Peterborough::Peterborough%% Plymouth::Plymouth%% Poole::Poole%% Portsmouth::Portsmouth%% Reading::Reading%% Redcar_Clevelend::Redcar & Clevelend%% Rutland::Rutland%% Shropshire::Shropshire%% Slough::Slough%% Somerset::Somerset%% Southampton::Southampton%% Southend_on_Sea::Southend on Sea%% South_Humberside::South Humberside%% South_Gloucestershire::South Gloucestershire%% South Yorkshire::South Yorkshire%% Staffordshire::Staffordshire%% Stockton_on_Tees::Stockton-on-Tees%% Stoke_on_Trent::Stoke-on-Trent%% Suffolk::Suffolk%% Surrey::Surrey%% Swindon::Swindon%% Telford_Wrekin::Telford & Wrekin%% Torbay::Torbay%% Tyne_and_Wear::Tyne and Wear%% Warwickshire::Warwickshire%% Warrington::Warrington%% West_Berkshire::West Berkshire%% West_Midlands::West Midlands%% West_Sussex::West Sussex%% West_Yorkshire::West Yorkshire%% Wiltshire::Wiltshire%% Windsor_ Maidenhead::Windsor & Maidenhead%% Wokingham::Wokingham%% Worcestershire::Worcestershire%% WALES::WALES%% Bridgend::Bridgend%% Blaenau_Gwent::Blaenau Gwent%% Cardiff::Cardiff%% Caerphilly::Caerphilly%% Carmarthenshire::Carmarthenshire%% Ceredigion::Ceredigion%% Clwyd::Clwyd%% Conwy::Conwy%% Denbighshire::Denbighshire%% Dyfed::Dyfed%% Flintshire::Flintshire%% Gwent::Gwent%% Gwynedd::Gwynedd%% Isle_of_Anglesey::Isle of Anglesey%% Methyr_Tydfil::Methyr Tydfil%% Mid_Glamorgan::Mid Glamorgan%% Monmouthshire::Monmouthshire%% Neath_Port_Talbot::Neath Port Talbot%% Newport::Newport%% Pembrokeshire::Pembrokeshire%% Powys::Powys%% Rhondda_Cynon_ Taff::Rhondda, Cynon, Taff%% South Glamorgan::South Glamorgan%% Swansea::Swansea%% Torfaen::Torfaen%% Vale_of_Glamorgan::The Vale of Glamorgan%% West_Glamorgan::West Glamorgan%% Wrexham::Wrexham%% SCOTLAND::SCOTLAND%% Aberdeen_City::Aberdeen City%% Aberdeenshire::Aberdeenshire%% Angus::Angus%% Argyl_ Bute::Argyll & Bute%% Banffshire::Banffshire%% Berwickshire::Berwickshire%% Caithness::Caithness%% City_of_Edinburgh::City of Edinburgh%% Clackmannanshire::Clackmannanshire%% Dumfries_Galloway::Dumfries & Galloway%% Dunbartonshire::Dunbartonshire%% Dundee_City::Dundee City%% East_Ayrshire::East Ayrshire%% East_Dunbartonshire::East Dunbartonshire%% East_Lothian::East Lothian%% Eilean_Siar::Eilean Siar%% Falkirk::Falkirk%% Fife::Fife%% Glasgow_City::Glasgow City%% Highland::Highland%% Inverclyde::Inverclyde%% Invernessshire::Inverness-shire%% Kincardineshire::Kincardineshire%% Kinrossshire::Kinross-shire%% Kirkcudbrightshire::Kirkcudbrightshire%% Lanarkshire::Lanarkshire%% Midlothian::Midlothian%% Moray::Moray%% Nairnshire::Nairnshire%% North_Ayrshire::North Ayrshire%% North_Lanarkshire::North Lanarkshire%% Orkney_Islands::Orkney Islands%% Peeblesshire::Peeblesshire%% Perthshire::Perthshire%% Renfrewshire::Renfrewshire%% Rossshire::Ross-shire%% Roxburghshire::Roxburghshire%% Scottish_Borders::Scottish Borders%% Selkirkshire::Selkirkshire%% Shetland_Islands::Shetland Islands%% South_Lanarkshire::South Lanarkshire%% Stirlingshire::Stirlingshire%% Sutherland::Sutherland%% West_Lothian::West Lothian%% Wigtownshire::Wigtownshire%% NORTHERN_IRELAND::NORTHERN IRELAND%% Antrim::Antrim%% Ardes::Ardes%% Armagh::Armagh%% Ballymena::Ballymena%% Ballymoney::Ballymoney%% Banbridge::Banbridge%% Belfast::Belfast%% Carrickfergus::Carrickfergus%% Castlereagh::Castlereagh%% Coleraine::Coleraine%% Cookstown::Cookstown%% Craigavon::Craigavon%% Derry::Derry%% Down::Down%% Dungannon::Dungannon%% Fermanagh::Fermanagh%% Larne::Larne%% Limavady::Limavady%% Lisburn::Lisburn%% Londonderry::Londonderry%% Moyle::Moyle%% Newry_Mourne::Newry & Mourne%% Newtownabbey::Newtownabbey%% North_Down::North Down%% Omagh::Omagh%% Strabane::Strabane%% Tyrone::Tyrone%% CHANNEL_ISLES::CHANNEL ISLES%% Guernsey::Guernsey%% Jersey::Jersey
This is my first foray into Flexi Content.
I followed the instructions on
www.flexicontent.org/features/fields.html
but it took me a while to realise (A) that there must be a single space between each county_name::County Name%% and no line breaks; and (
that spaces in the first part (value) could not contain spaces or special characters.
Initially I thought it would be easy enough just to use a spreadsheet, copy my list of county names into the first column, :: in the second, the county names again in the third, %% in the fourth and just concatenate into the fifth column.... and it worked fine up until that point.
I copied the concatenated column into Notepad and then into Notepad++ but that was when I came up against the carriage return (CR), line return (LR) (line break)issue.
If anyone knows how to use search and replace in a text or code editor to change \cr and \lr to a non breaking space then please post the details.
I use Notepad++ and wasn't able or savvy enough to figure out how to do that. :oops: