4.6K
How to check the if condition in Salesforce Visualforce page?
Assign the variable in your apex class and use that variable using below,
Ex1:
[html]
<apex:outputPanel id=”ref3″ style=”{!IF((masterLookupType == ‘Contacts List’), ”, ‘display:none’)}” >
<apex:inputField value=”{!t.Parentid}”></apex:inputField>
</apex:outputPanel>
[/html]
Ex2:
[html]
<div style=”{!IF((enableUATTab),”,’display:none’)}” >
TheBlogReaders.com
</div>
[/html]