You need to sign in to do that
Don't have an account?
ISPICKVAL() isn't working in my visualforce page
I'm building a visualforce page to show some flags at the top of a contact record based on certain criteria. I'm running into a problem with the following code:
<li style="{!IF(ISPICKVAL(contact.Prospect_Status__c, "Requested No Contact"), "", "display:none")}"><strong>They Have Requested No Contact:</strong> This person requested that we not contact them.</li>
Every time I try to save this (using the built in VF page editor) I get an error that says "Error: Incorrect parameter for function ISPICKVAL(). Expected Picklist, received Text" and it won't let me save. Am I losing it? It seems like this should be easy. BTW, yes Prospect_Status__c is indeed a picklist (single, not multi).
Thanks in advance!
Honestly, I'm not sure. The syntax looks valid.
If you can wait another week or so the Summer '09 release adds the TEXT() function, so something like the following should work:
Mike