I have How to show only few options (list of choices) on list collector on record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 09:05 AM
I have question 1: which is of type list collector ( it has list of choices/options) where user can select more than one value.
question 2:which is of type list collector ( it has list of choices/options) where user can select more than one value.
Based on question 1 answer, question 2 has has to display list of options.
I have tried using add option on catalog client script but it is not working.
Kindly suggest me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 11:07 AM
@Mounika280 did you figure this out? Is ThandileS on the right track?
If you are still struggling I'd like to know a bit more about what you are doing?
For your Question 1 - you are using list collector suggesting you are selecting records from another table? What does that table represent? Is it just a list of choices?
For Question 2 - What do these options represent?
Depending on exactly what the selections in Question 1 and 2 represent has a big impact on the approach.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 11:09 AM
Hi @John Gilmore ,
both question 1& 2 has custom values.
We're not selecting records from table here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 12:31 PM - edited ‎06-12-2025 01:08 PM
As you're referring to these as questions I assume we are inside a catalog item or record producer. Are the variables mapped to a field on the table?
If they are not mapped to a field on the table then its important to know if we are in a catalog item or a record producer as choices are saved in different tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 08:32 PM
we are inside the record producer and variables are not mapped to any fied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 08:57 PM
addOption() and removeOption() won't work for list collector with choices.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader