- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 04:52 PM
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
But when i tried the UI action in the form record it is not working.
Did I miss some steps?
Thanks in advance
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 10:51 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 10:51 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 11:57 PM
Hello,
Thank you for the suggestion, by the way what does Isolate Script do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2022 12:02 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2022 09:30 PM
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.