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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Default country name
Pages: [1]

Author Topic: Default country name  (Read 1359 times)

staskh

  • Guest
Default country name
May 15, 2009, 01:12:02 am
While defining "setting" i setup USA as a "default country" to be used in user registration profiles. However, when registration processed , "country" field still empty. ( it seems to fill up if i chose any country beside default one).

Is it a feature or bug ? How can i force profile to fill up "country" field even for default country?

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Default country name
May 15, 2009, 04:23:42 am
Hi
for United States Use US(iso_code)

HTH
sunil
The community around a product more important than the product itself?

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Default country name
May 15, 2009, 06:43:53 am
hi staskh,

To set default country go to : Administer CiviCRM -> Localization -> select "Default Country"
make sure your default country available in "Available Countries".

Now when u go to any form which consist of profile which having country field.
It should get set default to your default country, when there is no country field value for trigger contact record.

you might want to check here : http://drupal.demo.civicrm.org/

if issue persist you might want to give exact steps to replicate.

thanks
kiran
 
You Are Designed To Choose... Defined By Choice.

staskh

  • Guest
Re: Default country name
May 15, 2009, 11:34:30 pm
Thank you for prompt responses, but apparently I didn't describe my issue clear enough - yes, i find out how to specify a "default country" and , yes, it is appears on the profile entry form. But... The country name is not recorded in the profile record - it still blank. If i chose any non-default country name in profile editing, appropriate name will be entered into record, but not default one....

Any thoughts?

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: Default country name
May 16, 2009, 06:49:28 am

this is a bug/feature in the system. If the default country is the only data in the address block it is not stored.

One work around is to not have a default country

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

staskh

  • Guest
Re: Default country name
May 16, 2009, 09:47:25 am
Thanks for clarification!

Associated question - is it possible to change order of countries names in drop-down list from ABC to any custom? For example, setting few popular countries at the head of the list ?

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: Default country name
May 16, 2009, 01:53:37 pm

currently no. this has come up a couple of times and a patch to fix this would be great.

The code for this is in CRM/Core/PseudoConstant.php, check for functions with country in the function name

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Default country name

This forum was archived on 2017-11-26.