I want to display HTML button to System admin and Super User. I have written the below code:
<apex:outputPanel rendered="{!isEditAllowed}" layout="none">
<button type="button" onclick="uncheckCheckboxButton();" class="btn btn-primary btn-xs addCheckButton" hidden="{!IF($Profile.Name =='System Administrator'||$Profile.Name =='Super User', false, true)}">Uncheck</button>
</apex:outputPanel>
but it does not hide/show the button based on profile. can someone tell what I am missing here.
rendered="{!isEditAllowed}"
. Or simple removerendered="{!isEditAllowed}"
and try. It will work