I have below following rendered attribute
<apex:outputLabel rendered="{!IF(AND(LastCreditCheck == '', acctObj.Decline_Credit_Check__c== false),true,false)}" />
Above has to be true when acctObj.decline_Credit_Check__c
is false and LastCreditCheck value is blank. Last CreditCheck values is given below as
<td >{!EquifaxRiskGrade}</td>
and acctObj.decline_Credit_Check__c
is an account object field. It gives me syntax error in render attribute.
Any help on this?
Thanks
Best Answer
Fields are not generally an empty string (""), but instead are null. Regardless, if you're not sure, just use ISBLANK. Also, no need to go with the IF statement, you're just bloating your view state for no good reason.