You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Client scripts let the system to run JS scripts in the browser when the client events are happening, for example:

  • form loading;
  • form submitting;
  • field value changing.

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

  1. make the field hidden or visible;
  2. make the field read-only;
  3. make the field mandatory or non-mandatory;
  4. set the value in one field basing on the value in another field;
  5. change parameters in a Choice list;
  6. show a message basing on the field value.

The client script form configuration

Client script can be configured via the SIMPLE administrative interface.

You must have admin privileges to do this.

To configure a script, please navigate to System Definition -> Client Script. In the table below you can find information about the fields.

NameDescription
NameClient 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 be able to enter data. Generally, onLoad client 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 script can cancel form submitting by returning false.


  • No labels