What is Client Script?
A Client Script is a JavaScript code that runs directly inside your web browser.
The moment you click a button or open a page — it reacts instantly, without needing to contact the server.
Understand It With a Real Life Example:
Imagine you are filling an online form — like a job application or a signup form.
The moment the form opens, your cursor automatically jumps to the "Name" field — that is a Client Script doing its job silently in the background.
What Can a Client Script Do:
When the Form Opens:
- Cursor lands exactly where you need to start typing
- Certain fields appear, hide, or come pre-filled automatically
- A welcome message or popup greets the user instantly
When You Type or Select Something:
- One field's value automatically fills another field
- Wrong input gets highlighted in red the moment you make a mistake
- Dropdown options update based on what you previously selected
When You Click Submit:
- Empty required fields get caught immediately — "Please fill this field!"
- A confirmation popup appears — "Are you sure you want to submit?"
- Data gets validated before it even reaches the server
Why Client Scripts Matter:
Without Client Scripts, forms would feel dull, rigid, and frustrating to use. They make web pages feel smart, smooth, and responsive — reacting to every move you make without any delay.
Steps to configure the client script:
Step 1: Go to Application Navigator : All>System definition>Client
Scripts>Click on New
Step 2: We will be able to see the client script form

