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
Demo

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..)

Be the first to comment

Leave a Reply

Your email address will not be published.


*