5

I have a relationship type with some custom fields. Is there any way to customize the relationship tab under a contact, to display those custom fields? Instead of the default Start/End/City/State/Email/Phone? I have looked at the templates used, and ultimately the data to populate the oTable seems to come from an ajax call to civicrm/ajax/contactrelationships

I'm pretty sure I'm at a dead end, but figured I'd ask here before giving up. Thanks!

7
  • Did you try the Extension suggested below by Davejenx?
    – petednz - fuzion
    Commented Mar 6, 2016 at 19:20
  • No, I was scared off by its being out of date, and this wasn't important enough to pursue down that probably dead-end. I can't even find that extension now in the Extensions listing...
    – Norris
    Commented Mar 6, 2016 at 22:50
  • maybe it was this one? civicrm.org/extensions/custom-contact-relationships-tab/…
    – petednz - fuzion
    Commented Mar 7, 2016 at 1:19
  • but not suggesting you try it, just trying to keep a record
    – petednz - fuzion
    Commented Mar 7, 2016 at 1:20
  • I have the same question on 5.77. It is hard to believe no one has ever provided an extension. I plan to have a custom field set listing many years of membership.
    – user469
    Commented Sep 26 at 14:17

3 Answers 3

2

Which CiviCRM version are you using? If 4.4, then it looks as though this extension may do what you want:

Custom Contact Relationships Tab

If you're using a more recent CiviCRM version, it may be worth contacting the maintainer of that extension to see whether they are working on support for more recent versions.

There was some discussion of this feature on the old Civi forum in 2013: Changing relationship fields on the relationship tab. But please continue the discussion here rather than there. :-)

1

This is now possible with the core AdminUI extension which converts some CiviCRM screens to SearchKit/FormBuilder pages which are fully configurable via the UI.

The list of screens converted can be found here - https://lab.civicrm.org/dev/core/-/issues/3912

This screenshot displays two relationship custom fields on the screen in question, the state/prov field has also been removed.

CiviCRM relationship screen

Once the required core extensions have been enabled (SearchKit, FormBuilder and AdminUI), you will be able to modify the relationships screen (and others) by editing the required SearckKit. The list of converted screens can be found in the ‘Packaged Searches’ section when viewing the list of saved searches - /civicrm/admin/search#/list?tab=packaged

Tip - Made a change to one of the screens but doesn’t look right? No problem as you have the option to revert 🙂

Packaged search revert option

0

You can do this in 4.6 - if I understand what you mean correctly. I added a custom set to a particular relationship type, and those custom fields show up when you click 'View' on one of the relationship items.

1
  • Thanks. I do see the custom field when I click "View" on a specific relationship, but I wanted to change the default fields shown when you first click to the Relationship tab for a given contact. Among other fields, it shows city, state, and phone...which I don't need and hoped to replace with more useful fields. I never found a way.
    – Norris
    Commented Mar 6, 2016 at 2:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.