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 Profiles (Moderator: Dave Greenberg) »
  • Unable to select existing organization for Current Employer field
Pages: [1]

Author Topic: Unable to select existing organization for Current Employer field  (Read 1011 times)

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Unable to select existing organization for Current Employer field
June 01, 2010, 05:54:01 am
 Core field "Current Employer" have simple edit box type (hasn't possibility to choose ). So I cant choose existing organization for that field via profile. Every time profile submitting creates new Organization contact with name from Current Employer input (even if DB contains organization with the same). Is it work as it supposed to? How can I choose organization from DB contacts in that case?
Any suggestions?
Thanks

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: Unable to select existing organization for Current Employer field
June 01, 2010, 05:34:02 pm

replace the text field with a select field

http://www.twomiceandastrawberry.com/blog/46/civicrm-individual-prefix-field-as-auto-complete-text-input

allen (TwoMice) describes it very nicely in the above blog post

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

Roland-ST

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
Re: Unable to select existing organization for Current Employer field
June 09, 2010, 01:34:39 am
Donald,
Our programmer trying to change type of Current Employer field (to make it as it works on edit contact from in Admin panel). I can't get why it's have  text edit type for using via profile? Is there some reasons for that? May be this is reasonable to change type for Current Employer for profile using in future versions? It will allow not only create new organization without dedup check (as it now) but also select existing organization from DB what is undermined.

Can you help us by telling where we can find related code part in system? We from our part open to share our solution

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: Unable to select existing organization for Current Employer field
June 09, 2010, 07:01:12 am

The code for building a profile field is here:

CRM/Core/BAO/UFGroup.php, function buildProfile

you can add some debug statements there and see what needs to be done

It is a bit late for us to consider this change for 3.2. Exposing all org names will require some thought to permissioning etc

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 »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Unable to select existing organization for Current Employer field

This forum was archived on 2017-11-26.