//= $page_title ?>
Forms are used for:
- collecting data from users and recording it in a database;
- retrieve data from the database to be viewed, printed or emailed.
Each form contains at least one group.
Each group contains elements through which data is collected, processed or presented to users.
The form is created automatically when creating a list that is linked to a database table. In this case, the elements correspond to a column of the related table.
WIP - for each element it can be set not to be recorded in the table or to be recorded in json format in another column (for example, parameters).
WIP - A form can be created manually, in which case it is not linked to a table and its submission will not be recorded anywhere.
This variant can be used to create a form to be used in a modal window. After it is sent, there should be additional logic to manually process and record the data.
The groups in the form can be reordered. They can also be presented so that the form looks like a Multipage, tabbed or Accordion view.
Each form has two states: add/edit and review.
There are button and template settings for each state. Through the settings for the buttons, their location, appearance and text can be changed.
By default, default templates are used to visualize the data, which can be replaced with custom created ones for each form.
Plugins can be added to each form, which, through various functionalities, extend its action during the various creation/editing of a record.
They can be performed in different stages of the form:
- onBeforeLoad - before loading the form
- onFormLoad - on form load
- beforeFormSubmit - before the form is submitted
- afterFormSubmit - after the form is submitted