how to use client script and ui policy on service portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 04:23 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 05:32 PM
use the below lines in call back function
var answer = response.responseXML.documentElement.getAttribute("answer");
g_form.setValue('curr_location', answer);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 09:07 PM
Thanks dvp.
But it is not working in service portal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 09:17 PM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 09:27 PM
Thanks Shishir.
I have changed that UI type previously as well.
But I guess it had not changed.
Now it is working perfectly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 09:28 PM
Cheers.