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
Amita TatarAmita Tatar 

Display pop up or alert message

Hi guys,

I want to display alert or pop up message on account object when an order or quote is created or generated in system.How can i do it using formula field ?
Vasani ParthVasani Parth
Amita :

Is there a reason that you can't use a standard javascript alert? You probably have two ways to solve this :
  1. Here is a 'complete' VisualForce page using such a popup:
  2. 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 
IF (NOT(ISBLANK(text(alertChekBox__c))) , IMAGE("/img/msg_icons/error24.png", "high risk") , "")
You just need to put right fields here.

Please mark this as the best answer if this helps



 
Amita TatarAmita Tatar
Hi Vasani, 
Can you please help me out with the javascript alert?
Amita TatarAmita Tatar
Hi guys, I have a question that how can we display a pop up only once and not everytime we view the record?
 
Nazia Pathan 4Nazia Pathan 4
I have implemented the Inline Page functionality. However, the pop up displays multiple times on the record which is not feasible. Can we display a pop up only once and not everytime we view the record, it is irritating to see the pop up always on the page.