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
Matthew AllenMatthew Allen 

Popup Alert for Closed Account


Could someone tell me how to create a popup alert everytime someone views an Account where the Status is = Closed please?


Hi Mattew ,

You want message when the status will close from other status or when ever some one will open any closed account he/she should able to view the message .

if you want that every time user should get that message for closed account then you can create a inline VF page and  add to th eaccount layout which will display message .
<apex:page standardController="Account">
  <apex:outputPanel rendered="{!IF(Account.Status__c='Closed',TRUE,FALSE)}">
      <apex:pageMessage id="msg" escape="0" summary="Add message as per your requirment " severity="warning" strength="3"/>

Let me know if it hellps !!