Set variable mandatory on catalog task based on other variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 10:13 AM - edited 10-15-2024 10:13 AM
Hi All,
I searched on community a lot for this use case, but nothing that can fit in my requirement
I have three variable on my catalog---
Application - refers to cmdb ci
Category - choice
Subcategory - choice
Category and subcategory are always visible on catalog item, but not mandatory.
But, lets say if application is linkdin and user is trying to close the catalog task, in that case both category and subcategory should be mandatory.
I thought of writing ui policy oncatalog task, but I can't select variable or question in filter conditions
What is the way that I can fulfill this scenario.
Any guidance will be appreciated
Thanks in advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 12:43 PM - edited 10-15-2024 12:46 PM
Hi @BijoyDeb
You can write a Catalog UI policy on the Catalog item and make 'Applies on Catalog Task' to true, The policy will run on Catalog task record.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 12:54 PM
If your conditions are based on fields available on the ctask form then you can write client script and access variables using below syntax
g_form.getValue('variables.variablename'); // access variables info on client script.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 12:30 AM
@Voona Rohila I tried with client script, but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 12:52 AM
Can you share the logic you tried?
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP