Skip to main content

Sub-Form

Use a subform when you want:

  • reuse the components at different places
  • to edit a list of elements of the same type (multiple entries set to true)

If you just need to group some components together or bind them to one variable, you can use a Panel component.

Example

{
"type": "subform",
"label": "Sub-form",
"value": "{{any}}",
"extraSettings": {
"multipleEntries": true,
"layoutDefinition": {
"rows": [
{
"cols": [
{
"type": "text",
"value": "{{txt}}",
"label": "Text inside a sub-form"
}
]
}
]
}
}
}

Specific expressions

AttributeTypeDescription
$itemParentgenericAccess parent scope of the component
$indexnumberReturns a number (starting from zero) for each subform instance

Properties

:::palette-item com.flowable.design:flowable-core-palette,com.flowable.design:flowable-core-palette com/flowable/palette/core.form.palette,com/flowable/palette/form.template.palette cloud-sub-form