Close interaction tab on submission of a request

Teja45
Tera Contributor

Hi Folks,

 

I have a custom workspace in which if we click a button it will open a record producer within the workspace. Requirement is to close the workspace tab after submission of the request.

Screenshots below.

 

Teja45_0-1710156811505.png

 

Teja45_1-1710156862843.png

on click of submit particular tab in the workspace should close but not the entire browser window.

 

 

Thanks,

Teja.

4 REPLIES 4

HenryM487806852
Tera Contributor

Were you able to get this worked out? I need to achieve the same result but not able to get solution that yet. If you already got a solution, please share. Thanks

ersureshbe
Giga Sage
Giga Sage

Hi,

Please use client side UI action

OnClick: closeWindow();

this script should work fine

Script:

function closeWindow(){

window.open('','_self').close();

}

 

Regards,
Suresh.

Still not working for me. Can you please provide some screenshots with steps to achieve this?

 

Gustavo Olivei1
Tera Contributor

Hello,

One possible solution is to create a custom UX Client Script to force it, after a specific time, to close after submission:

 

function handler({api, event, helpers, imports}) {
helpers.timing.setTimeout(() => helpers.screen.updateStatus({status:"closed"}), 1000);