- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 05:25 AM
hi All
This is the url I have
https://www.myinstance.servicenow/u_tester.do?sysparm_document_key=b346c9c04f29d2006c29f5a18110c7ed
I want to write a on Load client script, which picks up this sysid's display value.
Can you please help me on how to achieve this?
Thanks
Surya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 05:33 AM
Hi Surya,
Below is the code.
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<body onload="test()">
<script>
function test()
{
var m='${sysparm_document_key}';
alert(m);
}
</script>
</body>
</j:jelly>
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 06:04 AM
Hi Srini,
Can we write client scripts for capturing the display value of sysid of url?
Thanks
Surya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 06:30 AM
Hi Surya,
I would say pass additional Display value parameter as well along with sys_id. If not you can always write a GlideRecord again in our page to get the display value
Hope this helps
Srini
Mark this response as correct/helpful if it does so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 06:11 AM