I need to choose a contactâs role in the opportunity sub-panel. However, I havenât found where to select this through the interface, only through the API and the database.
Helloooo
Edit this file
/var/www/html/suitecrm/public/legacy/modules/Contacts/vardefs.php
Add this line
âopportunity_roleâ =>
array(
ânameâ => âopportunity_roleâ,
âtypeâ => âenumâ,
âsourceâ => ânon-dbâ,
âvnameâ => âLBL_OPPORTUNITY_ROLEâ,
âoptionsâ => âopportunity_relationship_type_domâ,
âstudioâ => true,
),
Here;
Do a Repair & Rebuild
Then head to Studio > Contacts > Fields
You will be able to see the opportunity_role field - you should then be able to add this field into the Layout views for edit/view


edit; - this is a quick dirty fix; itâll get you what you need but it isnât upgrade safe - there are a few issues raised on this in GH - hopefully in newer version will fix
Hello @dhuntress, I made the change in the vardefs.php and performed the repair and build. I added it to the edit view. However, when selecting a role, it doesnât retain the value and still doesnât appear in the opportunity.
If I am not mistaken, that field is a relationship field, meaning it lives in the relationship table, not in the contacts record, and not in the Opp record.
This makes the treatment of the field a bit different. If you click the small âeditâ button on the far right of the row in the subpanel, it should take you to a special screen to edit the role.
If it takes you to the Contacts record instead, I think that is a bug; or better said, something that hasnât been developed yet in v8.
You might want to try these behaviors in v7 to see how it should appear.
Thereâs a v7 demo still online here. User: will / Pass: will
https://demo.suiteondemand.com
EDIT: hereâs a screenshot of that ârelationship editâ screen (not a record edit screen)
hey @pgr do you know if there is a comprehensive list of ânot developed in 8â yet? For these type of things. I mean they are not really bugs. Might be a good idea on Github just to have a list of features not yet developed from 7 or something at least people would know and also not sure if the devs have compiled such a list. I can think of a few already.
I never heard of such a listâŚ
Hi, a Github issue already exists for this:
Release Notes would also be a good place to list features not yet carried over from Suite 7.