I have How to show only few options (list of choices) on list collector on record producer

Mounika280
Tera Contributor

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

16 REPLIES 16

John Gilmore
Giga Guru

@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.

Hi @John Gilmore ,
both question 1& 2 has custom values.
We're not selecting records from table here

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.

we are inside the record producer and variables are not mapped to any fied

Ankur Bawiskar
Tera Patron
Tera Patron

@Mounika280 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader