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

I even tried incident table as your example. it's still not working, the Delete button is still there. 

ShuRiseUp2023_0-1735958082786.png

 

ShuRiseUp2023
Tera Expert

The table is a custom table in a scoped application, not OOTB table. Is it the reason why it's not working?

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

This table is extended from Task table. 

Hello @ShuRiseUp2023 

I have checked this and it works for custom table extended from task table.

JuhiPoddar_0-1735963158046.png

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