Form Types

Forms allow collecting information from users, the recording received information, or editing an existing record. Like List elements, forms use a table as a source and allow users to edit the table.

There are two different methods to create a form in Kozmik.

1) Forms created automatically by Kozmik

Create and Update forms are created automatically when a list element is added to the screen. The Create and Update Forms allow users to add a new record to the source table of the List Element and edit existing records.

Add a button to the upper right corner of the screen from the Screen Settings-Right Buttons section or anywhere on the screen from the All Elements List. Select Show Create Form from the Actions. Then select the relevant form screen from the auto-generated Create Forms and complete the redirection.

Update forms are an action that can be selected on the buttons added to the detail screens. Add a button to the upper right corner of the screen from the Screen Settings-Right Buttons section or anywhere on the screen from the All Elements List. Select Show Update Form from the Actions. Then select the relevant form screen from the auto-generated Update Forms and complete the redirection.

You can allow users to delete records by adding the Delete button to the Update form. You can show or remove the Delete button from the Buttons section of the form block settings on the Update Form screen.

2) Custom Forms

To create custom forms, first create a table in which the information you want to receive from the user is defined by a column. Then create a new screen, add a Form Block and select your source table.

Form Block

When a Form Block is added to the screen, an automatic data entry screen is created containing all the columns of the selected source table.

Under the title of Design; You can choose the appearance by editing the Title and Label fields.

From the Fields section in the Form Block settings; Areas that are not wanted to be displayed can be removed, new areas can be added or their order can be arranged by drag and drop.

Title, Placeholder arrangements can be made for each field and can be determined as a mandatory field.

In the buttons section; You can edit the text and appearance settings you use in the button.

Checkbox & Switch

Checkbox & Switch is an element that can only be added to the detail screens and allows the true-false values of the relevant record to be edited.

One of the Checkbox type columns in the relevant table is selected under the Content heading. In this way, the changes made on the screen edit the record in the data line.

!!!The checkbox element that is not associated with a column means that no record is kept of the changes made by the user.

Under the title of Design; Title and Label contents can be selected or written manually.

With the Type selection, you can make the element appear as Checkbox or Switch.

Notes

The Note is an element that can only be added to detail screens and allows users to edit the text in full screen.

One of the columns of Longtext type in the related table is selected under the Content heading. In this way, the records of the notes added and edited by the users are kept in the data record.

!!!Notes element not associated with a column means that no record is kept of the changes made by the user.

Title and Label contents can be selected or written manually under the Design heading.

Number Entry

Number Entry is the element that can only be added to the detail screens and allows users to enter and edit numeric values.

One of the columns of Integer type in the relevant table is selected under the Content heading. In this way, the record of the numerical values edited by the users is kept in the data line.

The Number Entry element that is not associated with a column means that the user's changes are not recorded. Min Value and Max You can set the lower and upper limits of the numeric values that can be selected by editing the Value values.

A title can be selected or written manually under the Design heading.

Last updated