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
Gustavo A. SelujaGustavo A. Seluja 

Convert a Classic Visualforce page to Lightning

I have VF page with the Classic look (see below).  The code looks like this:

<apex:page >
 <apex:enhancedList height="600" rowsPerPage="25" id="AccountList" listid="{!$CurrentPage.Parameters.viewId}" customizable="false"/>
 </apex:page>

1) Can it be updated to a Lightning look and feel?  How?
2) The page, part of a Classic app, is still active and users are using.  Will an update make it a problem?

Thanks!

User-added image


 
Best Answer chosen by Gustavo A. Seluja
VinayVinay (Salesforce Developers) 
Hi Gustavo,

>> Add the attribute lightningStylesheets="true" in the <apex:page>
>> Update the checkbox in the Visualforce -  Available for Lightning Experience, Lightning Communities, and the mobile app

References:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_lightningstylesheets.htm
https://help.salesforce.com/articleView?id=000312350&language=en_US&type=1&mode=1
https://jayakrishnasfdc.wordpress.com/2018/12/26/convert-vf-page-to-lightning-experience/#:~:text=To%20style%20your%20Visualforce%20page,t%20get%20Lightning%20Experience%20styling.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar

All Answers

VinayVinay (Salesforce Developers) 
Hi Gustavo,

>> Add the attribute lightningStylesheets="true" in the <apex:page>
>> Update the checkbox in the Visualforce -  Available for Lightning Experience, Lightning Communities, and the mobile app

References:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_lightningstylesheets.htm
https://help.salesforce.com/articleView?id=000312350&language=en_US&type=1&mode=1
https://jayakrishnasfdc.wordpress.com/2018/12/26/convert-vf-page-to-lightning-experience/#:~:text=To%20style%20your%20Visualforce%20page,t%20get%20Lightning%20Experience%20styling.

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
This was selected as the best answer
Gustavo A. SelujaGustavo A. Seluja
That did it.  Thank you Vinay! (and thank you for the references too).

Best,
Gustavo