Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

we want to hide form action of create incident from form context menu of SIR form

Siva_Prasad
Tera Contributor

we want to hide form action of create incident from form context menu of SIR form after one incident is created from the security incident ?Is there any solution for this?

 

18 REPLIES 18

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Siva_Prasad 

Out of the box (OOTB), the same logic works on the Incident table to create related changes. Please review it — if it’s not the same, you can build your own logic.

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

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

Siva_Prasad
Tera Contributor

Our requirement is to hide the create incident form action from form context menu like create problem and create change after one incident is created  

yes, ,mate.

You can check the OOTB solution applied on the Incident table and make changes as per your need.

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

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

lakshaysharma
Giga Contributor

To meet your requirement of hiding the Create Incident form action once an Incident has already been created from a Security Incident then you can apply a similar condition in your UI Action:

current.incident == '' || current.incident == null

This will ensure the option appears only when no linked Incident exists.

If you need it to behave the same way in the form context menu, the same condition logic will work there too.