List collector

servicenow14710
Tera Expert

Hello developers, based on variable on catalog item, i need to populate choices of list collector in catalog form.

Screenshot 2024-03-11 014946.png

from above table based on systeminfo( form) selected listdata field whch is list collector on form has to get choice.

Any help is appreciated . Thanks!

 

8 REPLIES 8

Hi @servicenow14710 

I see. You'll need to set the Reference qualifier to achieve it.

Sample below.

javascript:'system_info=' + current.variables.system_info;

Timi_0-1710137766872.png

 

Cheers,

Tai Vu

Hello @Tai Vu : the variable list collector should depend on two columns system and systeminfo. Thanks!

Hi @servicenow14710 

There you go!

javascript:'system=' + current.variables.system + '^system_info=' + current.variables.system_info

Timi_1-1710216060566.png

 

Make sure to replace the variable name and field name by yours.

 

Cheers,

Tai Vu

yad_achyut
Giga Guru

@servicenow14710 : Make use of Reference qualifier with following code for achieving the values in your list collector:

 

javascript:’system_info=‘ + current.variables.variablename;