Client script for reference qualifier

charanpatnala
Tera Contributor

Hello Team, I am trying to write a code for variable in a variable set of type reference which should filter the table it is referencing and populate with two possible values using onLoad catalog client script. I tried but haven't found a solution for that can you help me to solve this thanks in advance.

9 REPLIES 9

Cheikh Ahmadou
Tera Guru

Why don't you just use a reference qualifier with a script include?

Hi @Cheikh Ahmadou , can you share any reference script include I'll try to implement for my problem thanks.

Hi @charanpatnalai sorry i don't have a script include doing it currently.

Ankur Bawiskar
Tera Patron
Tera Patron

@charanpatnala 

you should only use onLoad catalog client script if you wish to auto populate 1 value

But in this case you want to restrict so you should use simple reference qualifier as this so that it always show 2 values

Something like this but please enhance for your case.

AnkurBawiskar_0-1747836499948.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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