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
Tasia Demuth 4Tasia Demuth 4 

List Action with VF page question

I have a visualforce page that I used to override the 'New Opportunity' button on the Opportunity related list on the Account. To make this usable in Lightning, should I create a lightning component? Or is there a way to use the Visualforce page that I already have written? 

Any advice is greatly appreciated. 

Thanks, 
Tasia
Best Answer chosen by Tasia Demuth 4
Prashant Pandey07Prashant Pandey07
Hi Tasia,

You can still use your visualforce in the lighting just you need to teak your visaulfroce and should work. Use the below code for change the look and feel of your visualforce page.
 
<apex:page lightningStylesheets="true">
<apex:slds>
<!--your vf logic goes here-->
</apex:slds>
</apex>
read more here https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_lightningstylesheets.htm


--
Thanks,
Prashant

All Answers

Prashant Pandey07Prashant Pandey07
Hi Tasia,

You can still use your visualforce in the lighting just you need to teak your visaulfroce and should work. Use the below code for change the look and feel of your visualforce page.
 
<apex:page lightningStylesheets="true">
<apex:slds>
<!--your vf logic goes here-->
</apex:slds>
</apex>
read more here https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_lightningstylesheets.htm


--
Thanks,
Prashant
This was selected as the best answer
Tasia Demuth 4Tasia Demuth 4
Thanks Prashant. That worked really well! 

Much appreciated!
Tasia