JavaScript error in your browser console - g_form.getParameter is not a function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 09:24 AM
Hello,
I have an error when using Portal, there is a onLoad Catalog Client Script with beginning:
var catalog_item_sys_id = g_form.getParameter("sysparm_id");
It work perfectly outside the Portal (using Try it or from Catalog) but in Portal I receive an error when item is opening:
There is JavaScript error in your browser console and details in the console says:
Error while running Client Script "Get Details2": TypeError: g_form.getParameter is not a function
It happens on the DEV instance (Jakarta).
It was working ok, but suddenly it stopped and I receive this error.
Can you help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2018 07:34 AM
Hi Britwill,
I am using getReference() function in my client side script, but its not working in portal. as u said the above methods are not supported in portal, is there any other way to achieve the same
Thanks,
SHambhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2018 07:48 AM
you can use glide ajax :
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/reference/r_ExamplesOfAsynchronousGlideAjax.html