Skip to main content
Version: 5.1 (Archived)

WorkflowComponentSections Form Field

The workflowComponentSections form field type provides a list box containing enabled extensions of type component.

  • type (mandatory) must be workflowComponentSections.
  • name (mandatory) is the unique name of the field.
  • label (mandatory) (translatable) is the field html label.
  • description (optional) (translatable) is the field description.
  • multiple (optional) if set to true allows multiple items to be selected at the same time. Set to false to allow single selection.
  • required (optional) if set to true, the first field option should be empty, see last example.
  • layout (optional) a selected layout for the field, i.e. 'joomla.form.field.list-fancy-select'

Implemented by: libraries/src/Form/Field/WorkflowComponentSectionsField.php

Example XML parameter definition

<field
name="allowedlist"
type="workflowComponentSections"
label="JWORKFLOW_EXTENSION_ALLOWED_LABEL"
description="JWORKFLOW_EXTENSION_ALLOWED_DESCRIPTION"
multiple="multiple"
layout="joomla.form.field.list-fancy-select"
/>