You need to sign in to do that
Don't have an account?
lovetolearn
Using "OR" operator with Rendered
Hi,
I am trying to use the OR operator with the following statement:
<apex:inputField value="{!object__c.field__c}" rendered="{!status='Before'}"/>
The logic is display this inputfield if the the status is before or after.
Please help.
Thank you
confused a bit/.?
u want to display this inpufield if status = before or after right? then u can write like this
<apex:inputField value="{!object__c.field__c}" rendered="{!if(or(status='Before',status='After',true,false))}"/>
All Answers
confused a bit/.?
u want to display this inpufield if status = before or after right? then u can write like this
<apex:inputField value="{!object__c.field__c}" rendered="{!if(or(status='Before',status='After',true,false))}"/>
Hi Love
Try this......
rendered="{!if(or(status='Before',status='After'),true,false)}"
.......OR.....
rendered = "{!(status=='Before'||status=='After') }"
Thanks
asish
I think there's more ways, but I'm drawing a blank.
Thank you guys.