How to Hide UI buttons on custom table

Manasa23
Tera Contributor

HI,

I have created a custom table , I do not want the UPDATE  & DELETE buttons on the form.

How to disable the button ?? 

Thanks 

find_real_file.png

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Just go to the Ui action and add the below condition in the condition field:-

current.getTableName() != 'tablename'

 

Please mark answer correct/helpful based on Impact

View solution in original post

5 REPLIES 5

Saurav11
Kilo Patron
Kilo Patron

Hello,

Just go to the Ui action and add the below condition in the condition field:-

current.getTableName() != 'tablename'

 

Please mark answer correct/helpful based on Impact

Anil Lande
Kilo Patron

Hi.

These UI Actions are created on Global table and you need to add condition on Global UI Actions.

You need to update OOB UI Actions with below condition.

&& current.sys_class_name !='your table name'

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Please check below UI Actions and update condition field on these records:

find_real_file.png

 

Update like below:

find_real_file.png

 

find_real_file.png

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Voona Rohila
Kilo Patron
Kilo Patron

Hi manasa

Instead of modifying global ui action, you can also follow below approach.

 

1) Go to UI Action's

2) Open Update button which is on Global Table

3) Change table to your table on which you have to hide this button and then click insert and stay.

4) Then deactivate this new button. So you won't be able to see Update button any more.

 

You can also configure your ACL's and give roles for whom the records can be edited/deleted.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP