how to use client script and ui policy on service portal?

Sona1
Kilo Contributor

I have catalog item named asset relocation

this catalog item is used to relocate the asset from one location to other. in this cat item when u select any item it will automatically populates its current location in current location field. for this I hv used reference variable "curr_location" and ui policy to find the location from location table

I want this to work in service portal. but in service portal it is not auto populating the current location of item

15 REPLIES 15

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You may want to view my getReferenceAdvanced solution documented on the Community and code in Share:


getReferenceAdvanced, g_form.getReference and GlideAjax Alternatives



This will work for both desktop and the Service Portal.   As the blog article describes you will need 2 separate client scripts for the getReferenceAdvancedDesktop and getReferenceAdvancedPortal functions.