You need to sign in to do that
Don't have an account?
Adding Contact Roles on Visualforce page in Lightning takes me to Classic
I added the Contact Roles related list on a Visualforce page with <apex:relatedList list="OpportunityContactRoles"/>. I have the following in the VF page to display in Lightning - lightningStylesheets="true"
When in Lightning, I click a button, get taken to the VF page. Click New on Contact Roles to add a new one, but get taken to the Classic view of adding a new contact role, not the new Lightning view. How can I make it so the user stays in Lightning the whole time?
When in Lightning, I click a button, get taken to the VF page. Click New on Contact Roles to add a new one, but get taken to the Classic view of adding a new contact role, not the new Lightning view. How can I make it so the user stays in Lightning the whole time?
As per Salesforce Docs
Description:
If a Custom Object Related List (via a lookup relationship to another Object with a corresponding Related List) appears in Classic but not Lightning, review the Field Level Security of the Object with the missing Related List.
Resolution:
To display the Related List in Lightning, the Custom Object's Field Level Security https://help.salesforce.com/articleView?id=admin_fls.htm&type=0 must be set to "Visible" for all profiles (not set as "Hidden").
So check for the field permission as well.
Custom Object Related Lists missing in Lightning
- https://help.salesforce.com/articleView?id=000249344&type=1
Hope this helps.Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Thanks,
Nagendra