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" />

 

 

Regards,
Bhavani Shankar
Linked In
1 ACCEPTED SOLUTION

Deepak Negi
Mega Sage
Mega Sage

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
Giga Patron
Giga 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

Deepak Negi
Mega Sage
Mega Sage

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
Giga 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.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************