what scripts does g:requires tag refer to

Bhavani Shankar
Tera Guru

Hi,

 

I want to know what and where are the scripts that are referred to in g:requires tag stored. 

 

<g:requires name="scripts/app.landingpage_ui/landingPageApp.js" includes="true" />

 

 

1 ACCEPTED SOLUTION

Not applicable

These are internal scripts which you may not have access to edit but you can paste the path in the instance url to see the code

<instance>.service-now.com/scripts/app.landingpage_ui/landingPageApp.js

 

Thanks

Deepak

View solution in original post

3 REPLIES 3

Anand Kumar P
Tera Patron

Hi @Bhavani Shankar ,

 

Open Table sys_ui_page.LIST and in Filter condition search for HTML contains g:requires you will get the list of all UI pages scripts uses g:requires.

 

If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand

Not applicable

These are internal scripts which you may not have access to edit but you can paste the path in the instance url to see the code

<instance>.service-now.com/scripts/app.landingpage_ui/landingPageApp.js

 

Thanks

Deepak

PrashantLearnIT
Tera Sage

HI @Bhavani Shankar 

 

g:include_scripts is only used for calling js (UI Scripts) not for css(.cssdbx) but on the other hand g:requires can be used both.