Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Regarding getting configuration items assigned to particular in a form created through Catalog Item

adityaj828
Tera Contributor

Field 1 is reference field to sys_user table
Field 2 is also a reference field to cmdb_ci table
created in a Catalog Item
As of now Field 2 in Service Portal , Showing all Configuration Items as per the expectations . But the requirement is When selecting user in field 1 . then Only configuration items assigned to that selected user in field1 should be visible in Field 2 . I tried using on change client script and Script include & Reference Qualifier (Advanced one) but unable to get this fixed .Please help .

1 REPLY 1

debendudas
Mega Sage
Mega Sage

Hi @adityaj828 ,

Set the reference qualifier as "Advanced" and use the below reference qualifier:

javascript: 'assigned_to='+current.variables.user;

debendudas_0-1726903329176.png

If this solution helps you then, mark it as accepted solution ‌‌✔️ and give thumbs up 👍