- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 08:58 AM
Hello,
Sorry for the elementary question.
I'm studying servicenow, and also learning about development and mechanics.
My question:
Why does servicenow write the processing separately with client script and script include (server)?
For example, in SAP, everything is written on the server side, including screen control and check processing.
What is the meaning and advantage of writing the processing separately?
We believe that understanding this mechanism will help you code efficiently in the right places.
Regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 10:01 AM
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2020 12:23 AM
Check out this video, it will clear all your doubts and help you to understand Client Script queries in details.
Link: https://www.youtube.com/watch?v=Wj8ZAWtTBqo&ab_channel=ServiceNowHelpdesk
It help you to understand below points.
- UI policy and Client script
- why client script run first in service now?.
- Which rule execute first client Scripts or UI polices?
- g_user and g_form tips
- Difference between client script and script include (server).
- Scenario based implementation
- Understanding below
- onLoad()
- onChange()
- onSubmit()
- onCellEdit()
Please mark reply as Helpful/Correct, if applicable. Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 10:51 AM
- Client Scripts: Execute on the client side (browser). Best for immediate user feedback and manipulating form fields.
- Script Includes: Execute on the server side. Best for complex, reusable logic and server-side operations like sending emails or processing data.