Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

JCB! Field Type

Subform

Repeating sets of nested form fields.

Provides a form containing repeatable rows of nested fields that you define. Users can add as many entries as needed, with each row replicating the specified field structure. This field type relies on a jQuery-based JavaScript file to handle dynamic behaviour and is ideal for managing structured, multi-value input.

Property Example Adjustable Mandatory Description
type subform no no (mandatory) must be subform.
name options yes no (mandatory) is the unique name of the parameter
label The Option List yes no (mandatory) (translatable) is the descriptive title of the field.
layout joomla.form.field.subform.repeatable-table yes no (mandatory) The layout for the repeatable table.
component yes no (optional) To change the component where it should search for layout
client yes no (optional) Function to initialise the application clientFrontend: site or 0Backend: admin or 1
multiple true yes yes (mandatory) The rows to be multiple.
buttons add,remove,move yes no (optional) Which buttons to show if multiple mode is true.Options: add,remove,move
fields guid,guid,guid yes no (mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids/guids with commas. Do not add custom fields that are not also used in this component.
formsource yes no (optional) you can add a path to a xml file containing the fields.
description yes no (optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form
default yes no (optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.
icon list yes no (optional) The icon to show on the select button (is prefixed with "icon-").
max 50 yes no (optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)
min yes no (optional) The minimum number of rows of fields required
filter yes no (optional) Use only if you would like to save raw data, since the default is best.
showon yes no (optional) show this field on the bases of the value in another field. https://joomla.stackexchange.com/a/17682/2166

Integrate, customize, and update this JCB Fieldtype with ease through JCB's flexible ecosystem.


Joomla Volunteer Portal Octoleo Llewellyn Telegram Mastodon X (Twitter) GitHub YouTube n8n Docker Hub Open Collective GPG Key