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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Ability to reassign custom data fields to other custom data groups
Pages: [1]

Author Topic: Ability to reassign custom data fields to other custom data groups  (Read 1817 times)

Andrew_Mallis

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
    • Ideograph
Ability to reassign custom data fields to other custom data groups
February 10, 2009, 02:22:11 pm
When Creating Profiles, especially in early stage layout, it common to assign custom data to the wrong group.
It is equally common to decide after the fact that fields should instead be moved to another group.

While this can be achieved by editing the 'civicrm_custom_field' and changing the 'custom_group_id' it would be preferable to have a way to do this in the UI somehow.

In the edit field window, a field with a dropdown of available custom data groups could allow this.
Andrew Mallis
http://andrewmallis.com
http://ideograph.ca

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Ability to reassign custom data fields to other custom data groups
February 10, 2009, 07:20:07 pm
Andrew - If you are using SQL to change the group which a custom field belongs to, a caveat.... When custom fields are added to a custom group that we also modify the DB schema - adding a corresponding column to the civicrm_value_* table which will store the values for that group.
Protect your investment in CiviCRM by  becoming a Member!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Ability to reassign custom data fields to other custom data groups
February 10, 2009, 10:32:47 pm
Also note that in civicrm_value_* table we have "entity_id" column which is usually foreign key reference to group type. So if you have created custom group of type "Contact" and now you want to change it to "Contribution", then you will have to change foreign key reference from contact id to contribution id.

So to avoid complications, IMO creating fresh custom group would be better solutions..

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Ability to reassign custom data fields to other custom data groups

This forum was archived on 2017-11-26.