function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rick-ProfaceRick-Proface 

ISPICKVAL always returns false

Hi,

 

I'm using this line in my code

 

stat="{! ISPICKVAL(Special_Price_Request__c.Status__c,"Request")}";

 

 And I always get a false answer even though I know the status IS set to Request. Is there a bug or something more I shoudl know????

 

Thanks,

Rick

Pradeep_NavatarPradeep_Navatar

Where are you doing this code? In Apex or in VF page.



Rick-ProfaceRick-Proface

in an S-control. I'm overriding the edit button. I want to check what stage the record is in and decide if I want to allow them to edit it or not. I found a work around, but would still like to know why this doesn't work...