Versions Compared

Key

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

...

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.
ColumnThe changes of this field will be the triggers to start onChange script.
DescriptionDetailed description of script actions.
ActiveIf TRUE then script will be able to work; otherwise it will not.
InheritedIf TRUE then script will be applied not only for the table specified in the Table field but also for all its child tables.
ScriptThis field contains client 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.


Client API

В клиентских скриптах доступны для использования методы, предоставляемые клиентским API SimpleForm (описание методов здесь)