+ 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>