function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
niraj kumar 45niraj kumar 45 

Custom button on related list

My custom object(Resource) has a master-details realtionship with Opportunity object.
In the Opportunity page layout I need to craete a custom button to ovrride the new button in the related list.
My custom button is working in classic view but not working in Lightining view.
How can I create a custom button for the related list that works on both classic and in lightning view?
Please suggest as I am new to Salesforce Lightning.
Vivek DVivek D
Button and actions works differently in Lightning and Classic. 
For Lightning try creating an action with the name "New" and add it on the page layout that will work