You need to sign in to do that
Don't have an account?

Alert Based on Picklist Value
I need some help.. I have a visualforce page (see code below) that I created. What it's suppose to do is display a warning if the DFU_Status__c = Complete. DFU_Status__c is a picklist.
Any help is appericated!
<apex:page StandardController="Case" > <script type="text/javascript"> if (ISPICKVAL({DFU_Status__c}, "Complete") { document.write('<font size=4 color=red>Warning!</font>'); } </script> </apex:page>
I don't know any Javascript, so I can't comment on what you've written but in your situation I'd be inclined to do this using the "rendered" attrribute.
<apex:pageMessage summary="This pageMessage will always display. Validation error messages appear in the pageMessages component." severity="warning" strength="3" rendered="{!ISPICKVAL(DFU_STATUS__c, 'Complete')}"/>