Disable option in Change Task Template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 07:47 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 11:44 PM
Hi @samadam
Please check the below posts. It might be helpful :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998980
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750605
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 02:20 AM
Hi @samadam
Did you check the standard change properties
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 02:40 AM
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:
- Navigate to All > Change > Standard Change > All Templates.
- Select the template you want to modify.
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 08:55 PM
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?