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
Troy PlainTroy Plain 

Creating an Alert Popup on Accounts, Leads etc

Hi all,
I'm looking for a way to create an editable alert popup box to be placed on customers accounts. I essentially need something like this app: https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016caVEAQ

Unfortunately we're unable to install apps on our Salesforce platform so I need to create something similar manually. Happy to use Visualforce or formulas, just need some help!
sagarika bsagarika b
Hi Troy Plain,

You probably have two ways to solve this
  1. Here is a 'complete' VisualForce page using such a popup:
        
<script>
.....
window.document.onload = new function(e)
{
  if({!Contact.Some_Checkbox__c})
   {
   alert("Checkbox is True");
    }
   else
    {      alert("Checkbox is False");
   }
  }
</script>


      2.  Formula field displaying an image indicator 
1IF (NOT(ISBLANK(text(alertChekBox__c))) , IMAGE("/img/msg_icons/error24.png", "high risk") , "")
You just need to put right fields here.

I hope it will be helpful to you

Thanks 
Sagarika