Confirmation message when closing an SC TASK

TarunChowdary
Tera Contributor

Hi Everyone,

I'm using the below code for a confirmation popup when a user clicks on Close Task button and it's working.

 

function onSubmit() {

     var action = g_form.getActionName();

         if (action === 'close_sc_task' || action === 'aw_close_sc_task') {

            var confirmation = confirm('Are you sure you want to close the Task ');

            if (!confirmation) {

            return false;

   }

}

return true; // Continue with form submission

}

 

Now I want this confirmation pop up to appear on catalog tasks for only one catalog item.
and I want this to work on both default and SOW views.

 

 

Thanks in advancce

1 REPLY 1

Chaitanya ILCR
Kilo Patron

Hi @TarunChowdary ,

 

try setting the UI Type to All

 

ChaitanyaILCR_0-1748484929726.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya