You need to sign in to do that
Don't have an account?

Hiding Button based on Profiles in Visual force page.
Hi All,
How can I Control Visibility of a button present in visual force page based on user's profile.
For e.g The Button " save" should be Visible to System Admin profile and should'nt be visible to any other logged user profile.
Thanks,
Ramana
<apex:commandButton value="Something Only For SysAdmins" action="{!doSomething}" immediate="true" rendered="{!$Profile.Name == 'System Administrator'}"/>
All Answers
<apex:commandButton value="Something Only For SysAdmins" action="{!doSomething}" immediate="true" rendered="{!$Profile.Name == 'System Administrator'}"/>