- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:03 AM
Hi All,
I have a requirement in Change Request form, in the category field below are the choices, when we select the below choices , another varible called CMDB checkbox, automatically it needs to checked , how to acheive this
Decommission - Application
Decommission - Application & Server
Decommission - In Build or Non operational CI
Decommission Server
System / OS upgrade
Tech Refresh / Server Migration
Project go-live
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:49 AM
Hi @MK21, you can also try the onChange client script on category field.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'Decommission - Application' || newValue == 'Decommission - In Build or Non operational CI' || newValue == 'Decommission Server' || newValue == 'System / OS upgrade' || newValue == 'Tech Refresh / Server Migration' || newValue == 'Project go-live') {
g_form.setValue('cmdb', true);
} else {
g_form.setValue('cmdb', false);
}
}
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:11 AM
Hi @MK21
You can do via UI policy.
You can use script as well, to make it visible or UI Policy action.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:26 AM
If I am selecting category choices cmdb variable needs to automatically checked
can I get this is via hi policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:28 AM
Hi @MK21
In this case use UI policy script and then set value to another field.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 05:29 AM
Can you please provide the sample script
