In UI Script addLoadEvent function is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 07:54 AM
Hi
i using madrid-12-18-2018__patch0-01-08-2019_01-17-2019_1433 version instance. we are facing an issue in UI script.
we written the code for redirect the instance page to portal page based on the user roles. but in Madrid "addLoadEvent" function is not working even j Query is also not working. Can any one help on this issue please.
my code syntax is given below
addLoadEvent(function() {
alert("ui script is triggered");
});
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:02 AM
Hi Subbarao,
So alert is not coming up?
Can you check what error is coming in browser console?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:54 AM
I fixed that error by deactivated the dataTables.bootstrap.min.js ui script which is available in my ui scripts. now addLoadEvent is working in UI script.
thank you Ankur for the idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 09:54 AM
Hi Subbarao,
Can you also mark my answer as correct if that helped.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader