Adding an external jQuery Library to Service Portal/ServiceNow instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 10:24 PM
Hello community,
How can I add an external jQuery library to use in the service portal? I would like to play around with the jQuery UI (user interface) library to play around with the cool animations offered.
The link for this library is below:
https://code.jquery.com/ui/1.12.1/jquery-ui.js
Please let me know if this is possible.
Thanks,
Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 10:48 PM
Hi Nicholas,
Go to Service Portal --> Dependencies from left nav. Open any dependency and there will be related lists to include any js / Css and refer to your portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2017 12:03 AM
Am I doing something wrong?
Link to example:
http://jqueryui.com/draggable/
Links they include in the link demo example:
- //code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css
- /resources/demos/style.css
- https://code.jquery.com/jquery-1.12.4.js
- https://code.jquery.com/ui/1.12.1/jquery-ui.js
THIS IS WHAT I HAVE
-------------------------------------------------------------
Code in widget editor:
Result:
New dependency I've (JS) created :
(css):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 09:40 AM
jquery needs to load before jquery ui.
Looks like you need to change the order for jquery ui to 200, currently they are both at 100.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 05:55 AM
Hi Nicholas, nicksoltis
Have you figured it out? Im facing the same issue.Please let me know how to use jquery in portal.
I have added the jquery code to link area and have included the dependencies still couldn't get what I want.
Thank you in advance!!