Restrict the "edit" button of outage for users in change request form.

thaduri sai
Tera Contributor

Hi Team,

 

We have to restrict the edit button for users - when the change state changes to "Assess" or "Authorize". How to acheive this?

thadurisai_0-1754211017535.png

 

Thanks,

Saikrishna

5 REPLIES 5

Gayathri Ramakk
Tera Contributor

Use a UI policy or Client script to hide the edit button when the state is "Assess" or "Authorize"

Client Script for reference:

if (g_form.getValue('state') == 'Assess' || g_form.getValue('state') == 'Authorize') {
// Hide Edit button logic here

g_form.setVisible('edit_button', false); // Hides the button
}

Nikhil Bajaj9
Giga Sage

Hi @thaduri sai ,

 

You can use ACL to hide this UI action.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @thaduri sai 

I’ve worked as a Change Manager, so let me share my thoughts on this. I'm not sure why you're looking to hide the "Edit" button, especially in the Assess or Authorize states. In practice, during the CAB (Change Advisory Board) meeting—especially in the Authorize state—there might be questions or suggestions that could lead to the change being marked as an outage.

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

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

TomShek
Tera Contributor

Hi Saikrishna, I guess the requirement is to restrict "who" to edit the change request form. During "Assess" and "Authorize", some managers should still able to provide their input and make this ticket move forward. Is it?