Skip to main content
I'm trying to hide a command buttong if a user is not a System Administrator but I'm getting a syntax error. The command button worked until I put in the rendered atrribute. Can anyone find the syntax error?

 

<

 

apex:commandButton

 

value = "View Expanded"

 

action = "{!toggleForecastExpanded}"

 

rendered = "{!IF({!$User.ProfileId}== '00eU0000000qqCOIAY', false, true)}"

 

/>

 

 

Thanks for your help.
2 respuestas
  1. 8 oct 2014, 11:17
    <

     

    apex:commandButton

     

    value="View Expanded"

     

    action="{!toggleForecastExpanded}"

     

    rendered="{!IF({$User.ProfileId}== '00eU0000000qqCOIAY', false, true)}"

     

    />

     

    Just removed ! before $User
0/9000