- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 07:53 AM
I am testing various debugging options in the "Client script" and added few likes using jslog() method which I expect to see in "JavaScript Log" section but it is not visible.
I have refreshed browser session and also reloaded the form and enabled the Java Script logging from settings menu but still it is not showing the relevant jslog messages.
However same messages are appearing in browsers console log though which suggests there's no problem with the one liner demo client script I have written.
I am using Istanbul release. Is there anything I am missing here? I've got through docs and can't find any other option to be enabled to see these messages in ServiceNow's JavaScript Log windows.
Field watcher is working OK.
Thanks,
Shishir Gupta.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2017 05:31 AM
I recently upgraded instance to Istanbul and issue is resolved with no other modification. Now I can see jslog messages in JavaScript Log window.
Not sure if this was broken with Helsinki latest patch 9a I was on when issue was reported.
Regards,
Shishir Gupta.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 07:59 AM
Hi Shirshir,
Can you provide your script to review, you also can your alert() function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 08:14 AM
Client Script is as simple as below just to test jslog message. Alert is OK but very interrupting.
function onSubmit() {
jslog(">>>>>>>This message is from jslog().");
}
So this is only appearing in browser console log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 11:28 AM
Yes ShiShir, this will work only when you submit the form, Please follow the below steps.
You also can refer below links for more information
http://wiki.servicenow.com/index.php?title=JavaScript_Log#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2017 01:26 AM
Balaji,
All these usual steps are done and message not appearing in javaScript Log hence why the question/issue is raised.
Using similar one liner code for onLoad or onChange isn't pushing line in JSLog window.. however same is appearing in console log.
Is there a known issue with latest patch upgrade of Helsinki Patch 9a to which this is upgraded recently?