We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Condition for UI Action on Related list

Jose MMR
Tera Guru

Hi all,

 

How can I enable/disable a button from a related list based on the state of the parent entity.

 

For example on changes only create outages when change state is new.

 

 

Regards.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

Hi @Jose MMR 

 

These link will help you

 

https://www.servicenow.com/community/developer-forum/restrict-the-new-button-on-a-related-list-based...

 

https://www.servicenow.com/community/developer-forum/hiding-quot-new-quot-button-on-related-list-bas...

 

You need to write the code here:

 

AGLearnNGrow_0-1712146136397.png

 

 

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

Hi AG, thanks,

 

Yes I saw this configuration in our New button for outages. I want to apply a similar condition but in a custom ui action that I have configured as list choice in a CI related list. Our pupouse is create one outage for each Ci selected but only available in several change states.

 

I will check the urls that you share. Thanks.