Versions Compared

Key

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

...

  • make the field hidden or visible;
  • make the field read-only;
  • make the field mandatory or non-mandatory;
  • set the value in one field, basing on the value in another field;
  • change parameters in a Choice list;
  • show a message basing on the field value.

The client-side script form configuration

...

The client script can be configured via the SimpleOne administrative interface.

...

NameDescription
NameClient-side script name
TableA table on which form the script will be executed.
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 in this field will be the triggers to start the onChange script.
DescriptionDetailed description of script actions.
ActiveWhen set to TRUE, the script is active; otherwise, it is not.
InheritedWhen set to TRUE, 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 a client-side script.
Sys updated Updated byThis field contains information about the person who has updated the script. This field is filled automatically and always read-only.


Client-side API

In the client-side scripts, you can use methods that are provided by client-side API (SimpleForm class).