You need to sign in to do that
Don't have an account?

Is there a beforeTabClosed lightning event for console tabs?
Hello,
I'm trying to look for a way to prevent a console tab from closing on a certain condition.
Basically, if the user leaves a specific field empty, I'm looking to bring up a modal that will either let the user fill in the field and continue closing the tab, or cancel closing the tab.
I've tried using the tabClosed event
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_tabclosed.htm
However from testing, this event looks like it is called after the tab gets closed. Is there an event that happens before the tab closes that could be used for this case?
Thanks,
Scott
I'm trying to look for a way to prevent a console tab from closing on a certain condition.
Basically, if the user leaves a specific field empty, I'm looking to bring up a modal that will either let the user fill in the field and continue closing the tab, or cancel closing the tab.
I've tried using the tabClosed event
https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_events_tabclosed.htm
However from testing, this event looks like it is called after the tab gets closed. Is there an event that happens before the tab closes that could be used for this case?
Thanks,
Scott