The CreatorCon Call for Content is officially open! Get started here.

how to make an ui action button inactive

lipan
Tera Contributor

As shown below, How to make the update and delete button inactive(display in gray, cannot be clicked)

 

lipan_0-1707115470486.png

 

1 ACCEPTED SOLUTION

Pratiksha2
Mega Sage

Hello @lipan -

go to the Update and Delete or Submit action (global).

Add this red string to the out of the box condition:

 (current.getTableName()!='sys_audit')


Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks,

Pratiksha

 

View solution in original post

5 REPLIES 5

chetanb
Tera Guru

@lipan Can you please elaborate your query.

 

 

Pratiksha2
Mega Sage

Hello @lipan -

go to the Update and Delete or Submit action (global).

Add this red string to the out of the box condition:

 (current.getTableName()!='sys_audit')


Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks,

Pratiksha

 

lipan
Tera Contributor

Thank you for your answer,add condition (current.getTableName() != 'sys_audit') in UI Action will hide the UI Action on form,Although it was different from what I needed, I adopted it

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @lipan 

Add the condition here

LearnNGrowAtul_0-1707131132413.png

 

*************************************************************************************************************
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]

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