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

use the below lines in call back function



var answer = response.responseXML.documentElement.getAttribute("answer");


g_form.setValue('curr_location', answer);


Sona1
Kilo Contributor

Thanks dvp.


But it is not working in service portal.


Hi Sona,



Provided screenshot shows UI Type as desktop, hope you have changed that to ALL, also can you please share your script include code ?


Thanks Shishir.


I have changed that UI type previously as well.


But I guess it had not changed.


Now it is working perfectly.


Cheers.