The CreatorCon Call for Content is officially open! Get started here.

servicenow_live
Tera Contributor

Modify Reference Qualifiers Using Catalog Client Script

Create onLoad/onChange catalog client script on the main catalog item.

Use the below script,

Click here to view script : Click Here 

Comments
rfairley22
Tera Contributor

Hello,

This link is not working.

Community Alums
Not applicable

this article worked for me:
How to modify Reference Qualifiers with Catalog Client Scripts – ServiceNow – ServiceNow Think (word...

 

 

and this is the onChange client script:

 

var resetFilter = 'active=true^nameISNOTEMPTY^emailISNOTEMPTY^EQ';
var dynamicFilter = g_form.getValue('your other text var holding encoded query').toString().trim();
var gg = g_list.get('your ref var name'); // GlideList2 object
gg.setQuery(newValue == '' ? resetFilter : dynamicFilter);
 
Version history
Last update:
‎09-08-2021 01:04 AM
Updated by: