Client scripts
Let us create a client script - our first client-side script. A client script is JavaScript code that is associated with a table and is executed when the form loads, a field value changes, or on form submit.
The type property of the client script controls how and when the client script code is executed. The following types of client script can be created:
onLoad
: The code is executed when the form is rendered on the client browser.onChange
: The code is executed when the selected form field's value is changed. For theonChange
type, we also need to specify a form field (column) along with the table.onSubmit
: The code is executed when the form is submitted.onCellEdit
: This type of client script is executed in the list module page. It is executed when the field is modified using the quick cell edit feature of the list grid by double-clicking on a cell.
To create a client script, open Studio
and click on the Create Application File
button. In the Create Application File
wizard, select...