You need to sign in to do that
Don't have an account?
ishaan singh dhillon
rendered if
Hi All,
I am fairly new to apex programming and not able to figure out why the following line of code is not working for me :
<apex:outputPanel layout="panel" style="width: 100%" rendered="{IF({!Case.Type}=='Update Account')}">
The requirement is that if the value in Type piclist standard field on case object is Update account then the contect in this panel should be displayed.
Thanks in advance for your help.
Ishaan.
I am fairly new to apex programming and not able to figure out why the following line of code is not working for me :
<apex:outputPanel layout="panel" style="width: 100%" rendered="{IF({!Case.Type}=='Update Account')}">
The requirement is that if the value in Type piclist standard field on case object is Update account then the contect in this panel should be displayed.
Thanks in advance for your help.
Ishaan.
Thanks for pointing in the right direction, the following line worked like a charm :
<apex:outputPanel layout="panel" style="width: 100%" rendered="{!IF((Case.Type=='Update Account'),true,false)}">
Thanks,
Ishaan.
All Answers
Try this
<apex:outputPanel layout="panel" style="width: 100%" rendered="{!IF(Case.Type=='Update Account')}">
Thanks for your quick reply, the change proposed by you gives the error: Incorrect number of parameters for function 'IF()'. Expected 3, received 1
Thanks for pointing in the right direction, the following line worked like a charm :
<apex:outputPanel layout="panel" style="width: 100%" rendered="{!IF((Case.Type=='Update Account'),true,false)}">
Thanks,
Ishaan.