Client scripts helper functions

catchdini
Tera Expert

What are the helper functions available in client scripts? Is there a place I can read it from there or I have to have a look at the used client scripts in ServiceNow to get to know?

1 ACCEPTED SOLUTION

msrishilpa
Mega Expert

Hi catchdini,



Before finding functions of client scripts,its better to see what is API of client scripts in service now.Please go through this once,it is very useful.


Client API Reference - ServiceNow Wiki


Functions available in client scripts of service now is


1.glide form


2.glide user and more



client scripts are mainly useful to do validations on form before its submitting or perform some action if particular value of the field changes.For more info


please go through this link


Client Scripting - ServiceNow Wiki


View solution in original post

5 REPLIES 5

msrishilpa
Mega Expert

Hi catchdini,



Before finding functions of client scripts,its better to see what is API of client scripts in service now.Please go through this once,it is very useful.


Client API Reference - ServiceNow Wiki


Functions available in client scripts of service now is


1.glide form


2.glide user and more



client scripts are mainly useful to do validations on form before its submitting or perform some action if particular value of the field changes.For more info


please go through this link


Client Scripting - ServiceNow Wiki


Thanks Shilpa, its useful.


Similarly I would like to know the scripts/variables that are useful in other areas in ServiceNow like business rule. Does the Client-side API Reference will be useful for all or it is only for client scripts.


msrishilpa
Mega Expert

Hi catchdini,



Its only for client scripts.These can be written in anywhere,which is executing at client side.i.e. UI policies,client scripts.ui scripts,ui actions.



There is one more script called server script which can be used in Business rules,Script include,Data policies,UI actions.and it execute at server side.


http://wiki.servicenow.com/index.php?title=Server_API_Reference