'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.
//Class file
ReplyDeletestring boolean FlagName {set; get}
FlagName =true;
//Visual force page
rendered="{!!FlagName }" this check the negation of 'FlagName ' value
Meaning '!FlagName ' return the value of FlagName and i.e currently 'true'
next '!true' would be false
nice post
ReplyDelete