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) »
  • Country field only allows "United States"
Pages: [1]

Author Topic: Country field only allows "United States"  (Read 2007 times)

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Country field only allows "United States"
July 24, 2008, 05:05:02 pm
I have tested this on the Drupal demo as well as on my own 2.0.4 dev site.  When I go to the edit contact screen, or creating a new contact, the Country ajax-driven field only seems to contain United States as an option.  When I type United Kingdom and tab to the state/province field, it becomes greyed out.

I have a custom form which populates the country options from your data table.  I selected United Kingdom when I saved it.  I went into the administrator site to make sure everythign worked out, and the initial search results showed United Kingdom as the country.  When I clicked the contact and went to the summary screen, it showed nothing where the country should be.  When I clicked on the edit button, I saw "1228" in the country field instead of United Kingdom (that is the country_id from the database).  Clicking on the drop-down arrow for the field only displayed United States as an option.

Just to confirm, I tried creating a new contact and it did not offer anything but United States.  I checked on the Drupal demo site and it is doing the same thing.  If I select United States as my option, the State/Province field is populated with US states as expected.  When I try to manually type any other country, the State field gets disabled.  I am using Firefox on a Mac (tried it on Safari with same results).

Am I missing something?

josue

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
    • PTP
  • CiviCRM version: 3.4.4, 4.1.1
  • CMS version: Drupal 6.24, Drupal 7.12
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Country field only allows "United States"
July 24, 2008, 05:37:19 pm
have you enabled more countries in the Localization options?

Administer CiviCRM -> Localization -> Contact Address Fields - Selection Values

Add Available Countries and Available States and Provinces if you want those to show up too.

ClayWhipkey

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: Country field only allows "United States"
July 25, 2008, 12:09:58 pm
Yes, that's it.  Doh!

So many configurations to go back and redo when you make copies of the database.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Country field only allows "United States"
July 25, 2008, 02:27:09 pm
Clay - your comment motivated me to document a procedure for this - including a previously undocumented "feature" which allows you to reset just the location portions of the DB configuration info w/o clearing out all the other preferences. The procedure needs some test-driving (and probably some more detailed explanations for less technical folks) - but I think it's pretty close. Check it out (... and try it out if you have another site to move) - and feel free to enhance or fix.

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Country field only allows "United States"

This forum was archived on 2017-11-26.