custom user message in standard lightning page

e.force:showToast, force:showToast, lightning toast message example, lightning toaster, toast message on standard page salesforce, salesforce toast example, lightning message standard page, standard lightning record salesforce, toast message, lightning toast message

Create a custom field called ToastShown (Type:checkbox, default value: false, FLS : enabled) on any object then drag this component into corresponding lightning flexi page, Toast will be shown for only one time once record got updated(default behaviour:flag reset).

you can also customize it to make the toast fire based on your defined criteria.

Solution achieved using lightning data serviceĀ force:recordData where we can able to detect record events(CHANGED,LOADED..)


  1. Hi,

    I just tried using this code for the Account object and created a field too but it is not working. I am not sure why. Could you help me in this please.

Leave a Reply to Monika Cancel reply

Your email address will not be published.