How to populate 20 choices in a list collector variable?

muktha1
Tera Guru

I have an urgent requirement that I need to populate 20 choices in a  list collector variable in a wizard. I cannot create a separate table in Client instance with these 20 choices only to make it as the list table.

I tried setting another muliple choice  variable with these choices and use the query as a reference qualifier for the list collector from the Question choice table.  But it is displaying the entire  set of values from question choice table and not filtering the choiices. Can anyone please guide me with a solution as to how it can be achieved as I am not  very good at scripting?

Thanks

9 REPLIES 9

Manan Raval
Giga Expert

Hi muktha,

 

You need to write a client script to do that. You can refer the article by kalai (link provided below).

Auto-populate list collectors

 

Regards,

Manan

 

Kamal17
Kilo Sage

Hi Muktha,

I think the problem might be in your reference qual condition.

try using a reference qualifier condition which filters the question choice based on the sys_id of the multiple choice variable that you have created.

 

You may refer the below sample which will help you to show question choices of a specific variable whose sys_id is mentioned in the Reference Qual condition.

find_real_file.png

Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.

Regards,

Udhay

I tried this many times. Even though the sys_id is mentioned in the reference qualifier condition it is displaying the whole lot. 

Requirement is in a wizard. Wizard variables are similar to service catalog variables as per docs. But I am not able to achieve it. Please help

KamalM
ServiceNow Employee
ServiceNow Employee

This method works well but not for end users as only admins and catalog admins can read the question_choice table. Looks like there is a system process reading the question_choice table and passing the result back to the select_box formatter to get the choices