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
Sheida Saedifaez 7Sheida Saedifaez 7 

Clearing the toast message in Lightning?

i have an error message panel that i am showing as a 'sticky' toast message in lightning with $A.get("e.force:showToast") , but once the user submits the form again i want to clear it. Any idea how to clear a toast message in the controller?