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
Suman MSuman M 

Hide a link on Visualforce page based on logged in user profile


We have a link called 'Help' on Visualforce page, which is created by Javascript.
<li><a href="{!$Page.MyWSEHelp}" title="Help">Help</a></li>

Now, we have a requirment where this link 'Help' should be hidden from the page for te users who log in with Profile X. How can I make it Hidden in this case. Please help thank You. 
Kunal BindalKunal Bindal
HTML code
<li><a href="{!$Page.MyWSEHelp}" title="Help" style="display:{!IF($Profile.Name=='Profile X','none','block')} ;">Help</a></li>