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
NLTNLT 

Override the view button with the VF page in order to conditionally display the field based on the users profile.

Need to override the view button with the VF page in order to conditionally display the field based on the users profile. Need help.
SwethaSwetha (Salesforce Developers) 
HI NLT,
You can make use of the code from http://mrjavascript.blogspot.com/2013/07/conditional-override-new-standard.html

https://salesforce.stackexchange.com/questions/313777/conditional-override-of-new-button

You need to tweak the logic such that conditionally Rendering is done on Visualforce based on the user profile

Something like rendered="{!$Profile.Name=='Chatter Content'}"
See related: https://salesforce.stackexchange.com/questions/29361/conditionally-rendering-visualforce-element-based-on-user-profile

If this information helps, please mark the answer as best. Thank you