- 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:26 PM
Hello @ShuRiseUp2023
To hide the delete button on form
- Change the condition on the UI Action, add
current.getTableName() != 'incident' //change the table name as per your requirement
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:27 PM
Thanks, I tried to add this condition with my table name but it doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2025 06:30 PM - edited ‎01-03-2025 06:32 PM
Hello @ShuRiseUp2023
- Make sure you are selecting this delete record
- Check for any Typo mistake as it is working for me.
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:37 PM
Yes, this what I chose.