
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2017 09:53 AM
I see there are 4 types in client scripts
1.onLoad
2onChange
3.onSubmit
4.onCellEdit
When we use these functions in which scenario we segregate these functions ? For eg To validate mobile number format we can use onSubmit and onChange . Where is the exact difference between these 4 .
Thank you
Solved! Go to Solution.
- 3,693 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2017 12:20 AM
Hi Dinesh,
Good Day
Client Script : it will works in client (browser) side. Please find the details below for more information.
onLoad()
An onLoad() script runs when a form is first drawn and before control is given to the user to begin typing. Typically, you use an onLoad() script to perform some client side manipulation of the document on screen.
onChange()
An onChange() script can run when a particular field changes value or when the form is first drawn and no fields have changed value from previous script actions. As such, onChange scripts can potentially act as onLoad scripts with extra conditions.
onCellEdit()
Scripts can be defined as onCellEdit to run on the client side when the list editor interacts with a cell.
onSubmit()
An onSubmit() script runs when a form is submitted. Typically, you use an onSubmit() script to validate things on the form and ensure that the submission makes sense. As such, onSubmit()scripts can potentially cancel a submission by returning false.
To validate mobile number format :- please refer the below thread which helps you out!
Thanks,
Priyanka R

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2017 12:20 AM
Hi Dinesh,
Good Day
Client Script : it will works in client (browser) side. Please find the details below for more information.
onLoad()
An onLoad() script runs when a form is first drawn and before control is given to the user to begin typing. Typically, you use an onLoad() script to perform some client side manipulation of the document on screen.
onChange()
An onChange() script can run when a particular field changes value or when the form is first drawn and no fields have changed value from previous script actions. As such, onChange scripts can potentially act as onLoad scripts with extra conditions.
onCellEdit()
Scripts can be defined as onCellEdit to run on the client side when the list editor interacts with a cell.
onSubmit()
An onSubmit() script runs when a form is submitted. Typically, you use an onSubmit() script to validate things on the form and ensure that the submission makes sense. As such, onSubmit()scripts can potentially cancel a submission by returning false.
To validate mobile number format :- please refer the below thread which helps you out!
Thanks,
Priyanka R