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 (Moderator: Dave Greenberg) »
  • Howto rebuild the "current employer" field features for a different field?
Pages: [1]

Author Topic: Howto rebuild the "current employer" field features for a different field?  (Read 477 times)

sm

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Howto rebuild the "current employer" field features for a different field?
September 26, 2013, 03:01:32 am
Hi! I'm new here and I am glad to work with CiviCRM! I hope someone can help me with the following problem:

The "current employer" field has this cool feature that it autocreates an organization/employer if it doesn't exist yet. In addition to this field we want a second one, a sort of duplication of this field. (Scenario: A person has an employer and an organization he or she is active in as a volunteer.)

I manually created a custom field. I lets me select existing organizations. But if the organization does not yet exist, I can't enter it and it is not automatically created.

Can I rebuild the features of the current employer field?

Thanks for help!

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: Howto rebuild the "current employer" field features for a different field?
September 26, 2013, 07:17:42 am

You'll need to write custom code for this and clone the current employer behavior

however the current employer behavior is a bit of a hack and relies on the organization_name field being empty in the DB. You wont have be able to use that field for the volunteer and might need to create a new database column

please share your changes if you do implement something

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

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Howto rebuild the "current employer" field features for a different field?
September 26, 2013, 09:56:24 am
Since you are on drupal, you could also look at using a webform for this. Webform-CiviCRM-Integration can let you build that sort of behavior for any field.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Howto rebuild the "current employer" field features for a different field?

This forum was archived on 2017-11-26.