Forms

A form allows a user to submit new tickets, edit existing data, upload images or files. A form can be defined with multiple pages (aka. multi steps) and can consist of several input fields. These fields can furthermore be equipped with validation checks or field specific properties (e.g. a list contains of predefined values a user can choose from). 

Forms can be used as:

  • Quick actions - open a form from the dashboard or top menu

  • Inside a section - to add new entry specific to to that section

  • For entries - to open a form that relates to that entry

  • In modals - a small form can be opened in a modal component

Form Components

forms can be defined in the YML.

id String

uniqueID to reference the form (for quick actions, …)

dialog JSON

see Form Dialog

the form dialog can be configured directly in the YML or just be a reference to a separate file

dialog: |- { "title": ...

or

dialog: config/forms/createInventoryItem.json

 

onSubmit

see Post Processing (onSubmit)

role String

ADMIN = only admins can see this section

USER = every user can see this data

If you don’t define it, role USER will be applied.

forms: form: - id: createExpense_elo_create onSubmit: ... dialog: config/forms/createExpense_elo_create.json - id: createExpense_elo_update onSubmit: ... dialog: |- { "title": "updaten expense", ... }

Further information