- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 05:57 PM
as required, we need to hide personalize form option and Delete button from the form. The Delete button is from Global. I tried to override the global Delete UI action but cannot see "Insert and stay" option. I tried to add && current.getTableName() != '<table name>' in the Delete UI action script condition field but it's not working.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2025 01:40 AM
Delete button is from Global. I tried to override the global Delete UI action but cannot see "Insert and stay" option
Atul: You need to enable it via system properties to get this button.
Hide Personalized form:
This cant be removed, It is for better user experience.
I tried to add && current.getTableName() != '<table name>' in the Delete UI action script condition field but it's not working.
Atul: Better create an ACL and restrict user to delete the record. if code is not working on UI action.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:35 PM
I even tried incident table as your example. it's still not working, the Delete button is still there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:30 PM
The table is a custom table in a scoped application, not OOTB table. Is it the reason why it's not working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:40 PM - edited ‎01-03-2025 08:29 PM
Hello @ShuRiseUp2023
That should not be a problem.
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:41 PM
This table is extended from Task table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:46 PM - edited ‎01-03-2025 08:02 PM
Hello @ShuRiseUp2023
I have checked this and it works for custom table extended from task table.
script:
current.getTableName() != 'u_employeesincident'
Here u_employeesincident is a custom table extended from task table.
Can you share the screenshot of the script that you have tried?
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar