Populate only required groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19 hours ago
Hi Community,
For one of the catalog items, we have a variable named "groups", and the available choices for this variable are maintained in the question_choice table. The variable type has been set to List Collector, with the List Table configured as question_choice.
The groups variable should display choices based on the selection of another variable, "xyz". To achieve this, we implemented a Script Include and referenced it in the Reference Qualifier for the groups variable.
However, when the form is opened in the Service Portal, before selecting the xyz variable, the groups variable displays all choices from the question_choice table, including those created for other catalog items. The expected behavior is that the groups variable should only display choices associated with the current catalog item.
How can we ensure that the groups variable only shows choices specific to this catalog item in the question_choice table?
Reference qualifier in group variable : javascript: new SobeysKhalixAccessRequest().KhalixAccessRequest(current.variables.xyz)
Can anyone please help how to achieve this ?
Regards,
Tulasi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader