In how many methods we can call script include in client scripts??

jaiku
Giga Contributor
  1. 1. In how many methods we can call script include in client scripts
8 REPLIES 8

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to use GlideAjax to call script include from client script.



Regards,


sachin


The SN Nerd
Giga Sage
Giga Sage

You can only use Script Includes for GlideAjax (scripts that extend GlideAjax) in Client Scripts.



Otherwise, you can use UI scripts to define classes, which has access to all the UI API.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Karthik Reddy T
Kilo Sage

Hello jai,




We can user GlideAjax for to call a script include from client script.



Refer the links may helpful to you.



calling script include script in to client script



https://community.servicenow.com/thread/206360



Script Includes - ServiceNow Wiki



http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Swapnil Bhakar1
Mega Guru

Hi Jai,



There is only one way that you can call script include in client script by using GlideAjax.



More more info. please refer below links:



http://wiki.servicenow.com/index.php?title=GlideAjax#gsc.tab=0


http://wiki.servicenow.com/index.php?title=Script_Includes#gsc.tab=0




Regards,


Swapnil



PS: Hit like, Helpful or Correct depending on the impact of the response