Within my Wrapper Contact's list, I do have Contact records without Accounts. I wanted to have a condition such that the account label is clickable only when there is an Account to that Contact record. Here is what I have implemented, which gets me an error
<apex:column headerValue="Account">
<apex:outputLink target="_parent" value="{!If(NOT(ISNULL(URLFOR($Action.Account.View, c.actId))), URLFOR($Action.Account.View, c.actId), '#')}" >
{!c.accName}
</apex:outputLink>
</apex:column>
Error:
Content cannot be displayed: Invalid parameter for function URLFOR
Note: Only few contacts have the AccountIds as null. Where am I doing wrong?
Refernced this link before posting.
BLANKVALUE
. That said, what is the variable type foractId
? I don't thinkString
will work, it has to beId
.