We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

var url = document.URL.parseQuery() is not working in Catalog Client Script

Jatin Jaiswal
Tera Contributor

var url = document.URL.parseQuery() is not working in Catalog Client Script.

I used the above line to set the value of the Services which is required to modified using a catalog item.

Thanks for the help in advance.

1 ACCEPTED SOLUTION

suvro
Mega Sage

Hi Jatin,

 

Uncheck the isolate script checkbox. Then it will work fine

View solution in original post

7 REPLIES 7

suvro
Mega Sage

Hi Jatin,

 

Uncheck the isolate script checkbox. Then it will work fine

Thanks Suvro, It works

Ankur Bawiskar
Tera Patron

Hi,

document object won't work in portal

are you trying to obtain url parameters in portal?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Nope, in itil view.