Client Script
Client Script
Client scripts allow the system to run JavaScript on the client (web browser)
when client-based events occur, such as when a form loads, after form
submission, or when a field changes value.
Use client scripts to configure forms, form fields, and field values while the user
is using the form. Client scripts can:
> set the value in one field based on the value in other fields
OnChange
onChange() client script will get executed when user change any value in an
existing form.
OnSubmit
onSubmit() client script will get executed when use submits the form.
onCellEdit
It is used in list view. Cell mean a particular row inside a column. Like a excel
cell.
In list view in service now we will get the value as a tabular form so here one
value is like cell value.So here if we want to modify any value and trigger a
client script then we can use onCellEdit.