Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Client-side scripts let allow the system to run JS scripts in the browser when the client-side events happen, for example:

...

Client-side scripts are used to configure forms, form fields, and field values while the client uses the form. Their abilities:

...

The client-side script form configuration

Client The client script can be configured via the SIMPLE administrative interface.

...

NameDescription
NameClient-side script name
TableA table. The script will be executed on its form,
Type

The script type:

  • onLoad – it starts when the system displays the form for the first time before users will enter data. Generally, onLoad scripts perform manipulations on the client side with the current form or set default record values.
  • onChange – it starts when the specified field in the form is changed;
  • onSubmit – this client-side script can cancel form submitting by returning false.
ColumnThe changes of in this field will be the triggers to start the onChange script.
DescriptionDetailed description of script actions.
ActiveIf TRUE then the script will work; otherwise it will not.
InheritedIf TRUE then the script will be applied not only for the table specified in the Table field but also for all its child tables.
ScriptThis field contains the client-side script.
Sys updated byThis field contains information about the person who did the last update of the script. This field is filled automatically and always read-only.

...