Is there any way to restrict choice values displayed in "Custom with Label" type of variable on the record producer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 06:45 PM
Hello,
I created a custom choice column "Subcategory" to Change Request[change_request] Table and added this and "Category" column to Standard Change template so as to select subcategories on "Change Request values" variable in the "Propose a New Standard Change template" record producer.
Then I'm trying to restrict choice value displayed on the Subcategory field based on the Category value. I attempted to do that with Dependent value of the Subcategory choice values, but all of the options appear on the field. I still cannot find any solution.
So my question is :
1. Is there any way to restrict choice value displayed on the "Propose a New Standard Change template" record producer based on Dependent value?
2. The type of "Change Request values" variable is "Custom with Label". Is it possible to access this type of variable in the Catalog Client Script or Catalog UI Policy? And how? 'variables.<variable name>' dot-walking seems to be not helpful.
I would really appreciate it if you could answer my question.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 10:41 PM
Try to add additional attribute to subcategory i.e. ref_qual_elements=<category_backend_name>
https://community.servicenow.com/community?id=community_question&sys_id=7d93c765dbd8dbc01dcaf3231f961994
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2022 12:01 AM
Hi Gurpreet,
Thank you so much for your reply.
I'm afraid that the way you mentioned seems do not work.
According to the document, the attribute ref_qual_elements is only applicable for Lookup multiple choice, Lookup select box, and List collector, but the type of variable in question is Custom with Label.
As I understand it, this variable uses a UI macro. It retrieves each field's value specified in Standard Change property "Default Change Request values" in JSON format from Change Request table, and renders them altogether.
I was wondering if there would be any other solutions.
Best regards,
https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/reference/variable-attributes.html