You need to sign in to do that
Don't have an account?

Customize the Contact Roles related list fields on Opportunities with VF Question
I needed to be able to customize the fields visible on the Contact Role Opportunity related list to add the Contact Mobile Phone. I searched Answers and the famous Deepak came up with a brillant work-around solution using VisualForce (see link to the original thread below).
https://success.salesforce.com/answers?id=90630000000hp0AAAQ
I used the VF code he provided and modified it to pull in the Contact Mobile Phone into the Contact Roles related list on the Opportunity. It works perfectly except for a couple of things:

VF Contact Role has no link to the Contact record

Does anyone know if is there a way to modify the VF code Deepak provided to resolve these two issues?
Any help or advice will be most appreciated!
Thanks!
https://success.salesforce.com/answers?id=90630000000hp0AAAQ
I used the VF code he provided and modified it to pull in the Contact Mobile Phone into the Contact Roles related list on the Opportunity. It works perfectly except for a couple of things:
- When I click to add a New Contact Role in the new VF page on the Opportunity, it pulls it in within the full SF tab and sidebar window (see screen shot below).
- There is no link to the Contact record in the VF Contact Role related list (see screen shot below).
VF Contact Role has no link to the Contact record
Does anyone know if is there a way to modify the VF code Deepak provided to resolve these two issues?
Any help or advice will be most appreciated!
Thanks!
All Answers
Janis
Karanrajs - can you or someone else on this community show me the correct code for this?
Any help or advice will be most appreciated!
Thanks!
Did you get the Del link working? I'm trying to implement a similar functionality.
Thank you.
I was able to create the Del link by writing a controller extension.
@Karanraj,
For the href="/p/opp/ContactRoleEditUi/e?oppid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}", can this be replaced with !URLFOR($Action.Opportunity.edit, ContactRole.id)?
Your code is great, that you for it!
I have an additional question... our org has several Contact duplicates and it would be very helpfull to see the email addresses on the new Contact Role page...
Any way that you can help me with that?
Best and thanks...