How to change List Collector variable reference qualifier in a catalog client script

ritaaudi
Tera Contributor

Hi: I have a list collector variable in a catalog item that has a reference qualifier but I want that to change based on another variable selection. Can I do that in a catalog client script? If so how? Thank you! Rita

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@ritaaudi You will not be able to set the reference qualifier via client script. However, if you wish to make your list collector change values based on the another variable then you can simply use 

javascript&colon; 'u_category = '+current.vaiables.<variable_name>

Dipen Wadhwana
Giga Guru

Hi @ritaaudi ,

 

You can use the dynamic reference qualifier scripting to make reference qualifier dynamic based on your condition.

Please refer the below link for more guidance.

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/script/server-scripting/co...

 

Please mark this response as correct or helpful if it assisted you with your question.