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
Shahid2889Shahid2889 

Service Console - How to call a JS method on closing a subtab.

I am working on Service console. When we try to close a service console tab by click of x button near tab name, I want to display a warning message (maybe using JavaScript?). But I can't figure out a way t do that as the onbeforeunload event of JavaScript works on closing browser tab not  on service console tabs.

 

Any help will be appreciated.

 

Thanks.

ve krve kr
Hi Shahid,

I am also face the same problem .Did you get the solution for this Problem.If you have solved this problem.please share to me .

Thanks,
ve krve kr
I shared the scrren shot of my problemUser-added image

Once click the Save&close the button.The current working tab is closed and case status is update withvalue closed and redirect to the CASES Tab.
Shahid2889Shahid2889
No, I contacted Salesforce.com support and thet said its not possible. Thanks, Shahid
ve krve kr
Hi Shahi,

Thanks for giving the infromation.Is there any possible solution to  closing the subtab in service console by clicking custom button  on standard page layout.

Thanks,Krishna