How do you edit the ROLE in Opportunity Contact Subpanel?
And by edit, I mean how to you edit the entry options in the list? I know how to change the role, but I cannot find anywhere in the studio where I can edit the drop down list of entries for “opportunity_role”
Thanks!
its in the Core Language file but you can customise it in
custom/include/language/en_us.lang.php
$app_list_strings['opportunity_relationship_type_default_key'] = 'Primary Decision Maker';
$app_list_strings['opportunity_relationship_type_dom'] = array(
'' => '',
'Primary Decision Maker' => 'Primary Decision Maker',
'Business Decision Maker' => 'Business Decision Maker',
'Business Evaluator' => 'Business Evaluator',
'Technical Decision Maker' => 'Technical Decision Maker',
'Technical Evaluator' => 'Technical Evaluator',
'Executive Sponsor' => 'Executive Sponsor',
'Influencer' => 'Influencer',
'Other' => 'Other',
);
1 Like
Hi, you can also change this in the user interface:
Admin / Dropdown Editor /
opportunity_relationship_type_dom
3 Likes
BOOM! There it is. I knew there had to be a way to edit that sucker.
Thank you - found it as drop down named “opportunity_relationship_type_dom”
What version of SuitCRM are you on? This is not developed in SuiteCRM 8 and does not work last time I checked.
Now, we are using v7.13.
Some users are claiming that it used to work in the past.
Code for 'widget_class' => 'SubPanelEditRoleButton'
),
'phone_work'=>array(
'name'=>'phone_work',
'vname' => 'LBL_LIST_PHONE',
'width' => '15%',
),
//kbrill Bug#17483
'edit_button'=>array(
'vname' => 'LBL_EDIT_BUTTON',
//'widget_class' => 'SubPanelEditButton',
//C.L. Bug#18035, changed to use SubPanelEditRoleButton
'widget_class' => 'SubPanelEditRoleButton',
'role_id'=>'opportunity_role_id',
'module' => 'Contacts',
'width' => '5%',
),
'remove_button'=>array(
'vname' => 'LBL_REMOVE',
'widget_class' => 'SubPanelRemoveButton',
'module' => 'Contacts',
Related Topic.
It can be done
If you look at the layout defs of your subpanel you will see the definitions for the edit and remove buttons. I am looking at custom/modules/Contacts/metadata/subpanels/Account_subpanel_contacts.php
In there I can see :
'edit_button' =>
array (
'vname' => 'LBL_EDIT_BUTTON',
'widget_class' => 'SubPanelEditButton',
'module' => 'Contacts',
'width' => '5%',
'default' => true,
),
'remove_button' =>
array (
'vname' => 'LBL_REMOVE',
'widg…
It works fine for me in 7.15.0
1 Like
Thank you for checking it out
The issue was related to custom file. It has a wrong ‘widget_class’ in it.
/custom/modules/Contacts/metadata/subpanels/Opportunity_subpanel_contacts.php
We updated it and now we have module=Contacts&action=ContactOpportunityRelationshipEdit when we click the Edit button on the contact subpanel record.