Skip to main content
Is there any way that we can use a trigger to pop up a message that doesn't include the error message, popup in a form of dialog box with a message in it after we save a account or a contact ?
4 respuestas
  1. 12 feb 2014, 11:26 a.m.
    Another way would be this: Another way would be this: Create a Text Field on the object named Message [ API Name : Message__c; Data Type : Text Area]. Now, you can drag in an Inline Visualforce Page on to the Page Layout. The Visualforce Page will have the JavaScript code that would see if there is any text in the field Message and if in case there is something then display a native browser alert . And if the Message field doesn’t have anything then don’t show anything. So in essence whenever the User takes that record and if there is some data in the field then pop-up would be displayed.

     

    Now from the trigger, you can set in some value to the Message field. Also, the best part is that you may not even need a trigger for this as the setting the Message could be even achieved with the help of a Workflow Rule + Field Update.