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
Kunal Purohit 4Kunal Purohit 4 

How to Show/Hide Custom Setting Component in VF page.

Hello Community,

In my VF page, I want to show/Hide Custom setting Component based on User Login. Is it possible through Configuration or else It requires codig?

Marked text is a link that derives from custom setting. Please suggest solution.User-added image

PriyaPriya (Salesforce Developers) 

Hey Kunal,

If you wanna hide this option, then it is possible by enabling the permission "Hide Option to Switch to Salesforce Classic" on the user's profile.

also refer some related article :- 
https://help.salesforce.com/s/articleView?id=000352521&type=1
https://help.salesforce.com/s/articleView?id=000352476&type=1

Hope this information was helpful for you,

Kindly mark it as the best answer if it helps.

Regards,

Priya Ranjan

Kunal Purohit 4Kunal Purohit 4

Hi Priya,

Thanks for response. But this option is not related to Switching to Salesforce Classic. It is custom setting Comoponent. After clicking on this, it leads to another page. i just want to hide this option from a user with particular profile.