List collector - sys_choice - orderby sequence

SivaranjaniR
ServiceNow Employee
ServiceNow Employee

I have to create a variable in catalog item which should allow multi selection of the choices. So i selected the type as list collector and table as sys_choice and created choices in sys_choice. It's working fine but it's not getting displayed as per the given sequence but in Alphabetical order. Client wanted the choices to be displayed in the given order only. How do i do it.SivaranjaniR_0-1748315736806.png

 

 

 

when i use varieable type: lookup select box 

reference qual: element=what_services_will_be_provided_by_the_vendor_select_all_that_apply 

dropdown worksfine through client script :

SivaranjaniR_2-1748317218309.png

 

SivaranjaniR_1-1748317137296.png

But i want these order in list collector ?  do i have to create a custom table for this drop down instread of using sys_choice  table or any other possiblity using Attribute or reference qual

2 REPLIES 2

J Siva
Tera Sage

Hi @SivaranjaniR 
You can use "ref_ac_order_by=sequence" in your list collector variable attribute to meet your requirement.

JSiva_1-1748318573476.png

 

JSiva_0-1748318542597.png

Output:

JSiva_2-1748318615661.png

 

Regards,
Siva

 

 

SivaranjaniR
ServiceNow Employee
ServiceNow Employee

Thank you @J Siva  , i tryed it before with same attribute you mension   it doesnt work because of reference qualifier i provide only  element .Now its working as expected .

SivaranjaniR_0-1748396344575.png