How to check the if condition in Salesforce Visualforce page?

Assign the variable in your apex class and use that variable using below,


<apex:outputPanel id="ref3" style="{!IF((masterLookupType == 'Contacts List'), '', 'display:none')}" >
<apex:inputField value="{!t.Parentid}"></apex:inputField>


<div style="{!IF((enableUATTab),'','display:none')}" >

Written by 

2x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *