Render' property in Visualforce page - Conditionally rendering
We can have a field evaluated based on multiple condition.
Eg :
<apex:inputField id="xxxif2" value="{!Object.Fieldtobedisplayed1}" rendered="{IF(Object.picklistfieldapiname1 ='picklist value 1' || lead.Buyer_Type__c ='picklist value 2'
,true,false)}"/>
Note: Observe that after the || symbol '!' symbol is not present.
We can have a field evaluated based on multiple condition.
Eg :
<apex:inputField id="xxxif2" value="{!Object.Fieldtobedisplayed1}" rendered="{IF(Object.picklistfieldapiname1 ='picklist value 1' || lead.Buyer_Type__c ='picklist value 2'
,true,false)}"/>
Note: Observe that after the || symbol '!' symbol is not present.
No comments:
Post a Comment