How to add Reference Request Converted as a button in Salesforce
In the Lightning version:
Go to the Setup (Gear icon) > Object Manager > Opportunity > Button, Links and Actions.
Click on the New Action button
Please fill out the form and click Save:
Action Type: Lightning Component LightningComponent: AdvocateHub:RequestReferenceModal Height: 400px Label: please type in a text to display on the button, please make this unique from other buttons so that it's easy to find.
Add this new component button on the Opportunity Layout by heading over to the Page Layouts option on the right-hand side of the Object Manager menu > Choose the layout that the users will use.
Then head over to the Mobile & Lightning Actions > Choose the Reference request button that you've just created, please check for the label and action type should be quick action if you hover over the button.
Click save to save the layout. Check the Opportunity record and click on the link to see if the tool is working
Creating a button for the Classic version
Stay in the Lightning version Setup page > Object Manager > Opportunity > Button, Links and Actions
Click on the New Button or Link
Please fill in the form just like the following and click Save:
Label: Please type the text to display at the button. Please make it unique so it is easy to differentiate. DisplayType: Detail Page Button Behaviour: Display in new window ContentSource: Visualforce page Content: RequestReferenceComponentConverted [AdvocateHub__RequestReferenceComponentConverted]
Add this new component button on the Opportunity Layout by heading over to the Page Layouts option on the right-hand side of the Object Manager menu > Choose the layout that the users will use.
Then head over to the Buttons > Choose the Reference request button that you've just created, please check for the label and action type should be Custom Button if you hover over the button. Drag and drop it to Custom Buttons.
Click Save to save the layout and check the Classic Version to see if the button now works appropriately.
Did this answer your question?Thanks for the feedbackThere was a problem submitting your feedback. Please try again later.