How to properly override the delete button of task table in a custom table extended from it?

Ronald11
Tera Expert

Hello,

I just tried creating a custom UI action for my custom table extended from task table following the documentations.

https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/list-administration/task/t_OverrideOrRmvAUIActionForExtTbl.html

So just change the name for my custom UI action and specify the table and clicked insert

find_real_file.png

But when i tried the UI action in the form record it is not working.

find_real_file.png

Did I miss some steps?

Thanks in advance

1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

You need to set 'Isolate Script' to false.  Open list of UI actions and add that field in list using personalize list columns and then set that 'false' for the UI Action you created.

View solution in original post

4 REPLIES 4

Gurpreet07
Mega Sage

You need to set 'Isolate Script' to false.  Open list of UI actions and add that field in list using personalize list columns and then set that 'false' for the UI Action you created.

Hello,

Thank you for the suggestion, by the way what does Isolate Script do?

 

Thank you it now works as intended and can now delete when clicked. So is this the default behavior when we copy an oob? does it automatically set the Isolate script to true?

Yes, system set isolate script to true for new UI Action. Isolate script prevent interference of ui action script with global scripts. So you can't call a function written in global ui script if Isolate script is checked. In your case the onClick function was not reachable.