how to hide personalize form option and global Delete button on form

ShuRiseUp2023
Tera Expert

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. 

ShuRiseUp2023_0-1735954926941.png  

ShuRiseUp2023_1-1735955163158.png

Thanks

 

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShuRiseUp2023 

 

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.

AGLearnNGrow_0-1735983366539.png

AGLearnNGrow_1-1735983380566.png

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]

****************************************************************************************************************

View solution in original post

11 REPLIES 11

Juhi Poddar
Kilo Patron

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

JuhiPoddar_0-1735957408932.png

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

 

Thanks, I tried to add this condition with my table name but it doesn't work

Hello @ShuRiseUp2023 

  • Make sure you are selecting this delete record

JuhiPoddar_0-1735957827361.png

  • 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

 

Yes, this what I chose.