How we can update custom js file for ServicePortal?

Alok Sharma
Tera Contributor

How we can update custom js file for ServicePortal?

3 REPLIES 3

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

By custom js do you refer to a custom script include or something like this?

nathanfirth
Tera Guru

There are many ways to add a custom JS files to Service Portal. If it's specific to one or more widgets, you can use "dependencies" or "angular providers"... or if you just want to include it on page load you can add it to the Theme using the "JS Includes" related list.

Hope that helps.

Find many similar articles and tutorials at: https://serviceportal.io

-----------------
Nathan Firth
Founder and ServiceNow Architect
NewRocket, Inc.
nathan.firth@newrocket.com
http://serviceportal.io
http://newrocket.com

Hello Nathan,

 

Thanks for your update. We have another issue like we have to reference field on portal. On basis of first field we need to populate the value in second field.

 

Like Location on base User Profile.

 

Thanks