
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..)
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.
did you enabled fls and your field api name should be the same as shown ToastShown__c