Disable option in Change Task Template

samadam
Kilo Sage

I have a standard change proposal where I want users to create new change task templates. I am trying to restrict the values displayed in the drop down i.e. make them read only. How can I access change task values from template if I want to create a onload script? 

samadam_0-1707190413194.png

 

 

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @samadam 

 

Did you check the standard change properties

 

LearnNGrowAtul_0-1707214850342.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]

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

Robbie
Kilo Patron
Kilo Patron

Hi @samadam,

 

It's absolutely possible. The Change Task Templates are simply Catalog Items behind the scene so you change the UI form as you see fit including applying scripts.

 

To modify an existing template, perform the following steps:

 

  1. Navigate to All > Change > Standard Change > All Templates.
  2. Select the template you want to modify.
  3. Once you've opened the template, navigate to the bottom of the form where you'll see a link to 'Modify Template'.

From here you can edit the template as you would a Catalog Item. (Right-click at the top of the form).

Based on your requirement it is here you can restrict the value or options available in the dropdown with an onLoad script for example.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

 

 

I tried to create on load client script with  disableOption('template.change_task_type', 'processing'); but did not work. Is this the right way to do it?