Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

List collector

AbhishekCTS
Tera Contributor

I have a query in catalog item which is having 2 list collector variable type, and it is referencing to question_choice where it is having same set of choices for the 2 variables.

As per my requirement whenever i choose the choices from variable 1 like Paste and Copy as choices listed in it , the same choices should be excluded from the variable 2 and same goes vice-versa.

Please help me how i can achieve it 

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron

@AbhishekCTS 

share the variable config screenshots for both

in 2nd variable you can add this in advanced ref qualifier

javascript: 'sys_idNOT IN' + current.variables.variable1Name;

Also in variable attributes add this

ref_qual_elements=variable1Name

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar ,

I don't have the option for advanced reference qualifier only it is showing reference qualifier in the variable configuration .

Sharing the screen shot  

@AbhishekCTS 

add this in reference qualifier field

javascript: 'sys_idNOT IN' + current.variables.variable1Name + '^question=efc29fa93bbe4f5001afae8a04e45ae6';

Ensure you add this in variable attributes of 2nd variable

ref_qual_elements=variable1Name

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Ankur Bawiskar should i add the reference qualifier in both the variables reference qualifier and attributes also as mentioned by you ?