CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • county dropdownbox does not work
Pages: [1]

Author Topic: county dropdownbox does not work  (Read 1856 times)

fengboallan

  • Guest
county dropdownbox does not work
January 16, 2008, 11:00:22 am
Hi
when i edit the address of contacts, the county dropdown box does not display with the state selection correspondingly.

it has only 5 county information?

Is there anybody knows the reason?

thank you

Bo

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: county dropdownbox does not work
January 16, 2008, 11:33:58 am
CiviCRM doesn't come pre-loaded with all the counties (for US or any other country). Also, the County selection options are NOT limited by selected State / Province (as we have done with the Country > State/Province fields. That said, if you're only collecting addresses within one (or a few) states - you can probably make use of the feature.

A sql script to load all US counties to the civicrm_county table was developed by seedsofblue.com and is available here. I can not attest to it's accuracy etc. - but it's probably a decent start:

http://www.seedsofblue.com/hardcodedpages/civicrm/archive/us_civicrm_county.sql.txt
Protect your investment in CiviCRM by  becoming a Member!

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: county dropdownbox does not work
August 31, 2008, 07:49:53 am
Hi Dave,

Can this list be customised for other countries? I can only see 5 counties from US. But we are trying to use it in Ireland only. It is picking up state information when we select Ireland as country.

Thanks for your help.
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: county dropdownbox does not work
August 31, 2008, 11:29:50 am

yes, that list can be customized to other countries. You need to get the data for Ireland and then format it for the civicrm mysql table. you might want to use the US county list as an example (see link above). If you get the data from a public source, please publish your sql file so other folks from Ireland can use it in the future.

We've added  counties in the data file as a simple way of letting folks know about that field and table

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: county dropdownbox does not work
September 27, 2008, 04:39:09 pm
Thanks Dave/Donald,

The SQL file for Ireland is available here http://www.targetintegration.com/Files/IE_civicrm_county.sql.txt

Regards
Rohit
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

mtndan

  • Guest
Re: county dropdownbox does not work
May 12, 2009, 07:54:57 am
Do you have a copy of this text file? The link is broken.

Thanks!!


Quote from: Dave Greenberg on January 16, 2008, 11:33:58 am
CiviCRM doesn't come pre-loaded with all the counties (for US or any other country). Also, the County selection options are NOT limited by selected State / Province (as we have done with the Country > State/Province fields. That said, if you're only collecting addresses within one (or a few) states - you can probably make use of the feature.

A sql script to load all US counties to the civicrm_county table was developed by seedsofblue.com and is available here. I can not attest to it's accuracy etc. - but it's probably a decent start:

http://www.seedsofblue.com/hardcodedpages/civicrm/archive/us_civicrm_county.sql.txt

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • county dropdownbox does not work

This forum was archived on 2017-11-26.