- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 03:53 AM
Hi,
I have written a onLoad() catalog client script to fetch a parameter from the URL. When I load the form on Service Portal, the below error is logged:
I have used below script-
var cartParm = getParameterValue('cart_edit');
function getParameterValue(name) {
var url = document.URL.parseQuery();
if (url[name]) {
return decodeURI(url[name]);
} else {
return;
}
}
An URL is https://xxxxxx.service-now.com/sp?id=sc_cat_item&sys_id=a8567775db0acf00d8da755a8c961918&cart_edit=6b9c66dadb6abf40ba197b5b8c9619e5
Any advise? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 03:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 03:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 04:14 AM
Hey!
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 04:04 AM
This link should be helpful
Thanks