Section

Section #

The section field is a container field. It can define multiple input fields, which are displayed as a sub form. The output is a dictionary with values from the sub form fields.

section

section

Properties #

Bundle manager Properties #

propertyvalue typeoptionaldescription
keystringmandatoryKeys are for internal use and must be unique.
titlestringoptionalThe title of the element.
fieldsarray of dictionariesmandatoryThese are the subform input fields.
groupdatabooleanoptional (default: true)When set true to child field value are stored in a hash below the section key. When set false the values are placed at the same level as the section neighbour fields

Sample #

Configuration #

./quiqr/model/base.
     
fields:
- key: some_child_field
  title: Some chield field
  type: date
groupdata: true
key: some_parent_field
title: Some parent field
type: section
groupdata = true
key = "some_parent_field"
title = "Some parent field"
type = "section"

[[fields]]
  key = "some_child_field"
  title = "Some chield field"
  type = "date"
{
   "fields": [
      {
         "key": "some_child_field",
         "title": "Some chield field",
         "type": "date"
      }
   ],
   "groupdata": true,
   "key": "some_parent_field",
   "title": "Some parent field",
   "type": "section"
}

Output #

some_parent_field:
  some_child_field: "2021-04-02"