Reply
Visitor
ramanapatlammagari
Posts: 1
0
Accepted Solution

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

Super Contributor
SteveBower
Posts: 932
0

Re: Hiding Button based on Profiles in Visual force page.

<apex:commandButton value="Something Only For SysAdmins" action="{!doSomething}" immediate="true" rendered="{!$Profile.Name == 'System Administrator'}"/>

-----------------------------------------------------------
Available for Salesforce.com consulting work.
e-mail: sforce@stevebower.com