Skip to content

move-elevator/typo3-repeatable-form-elements

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

125 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Extension icon

TYPO3 extension repeatable_form_elements

Latest Stable Version Supported TYPO3 versions Supported PHP Versions Stability CGL Tests License

Note

This is a fork of tritum/repeatable_form_elements, the original extension by Ralf Zimmermann / dreistrom.land. This fork adds TYPO3 v14 compatibility, PSR-14 event migration, CI/CD infrastructure and a DDEV-based multi-version test environment.

A TYPO3 extension that adds a Repeatable container element to the TYPO3 form framework. It allows editors to create container elements with any type of fields. In the frontend, users can dynamically add and remove copies of the container. Validation is copied automatically and all form finishers are aware of the duplicated fields.

πŸ“‹ Requirements

Requirement Version
PHP 8.2 – 8.5
TYPO3 13.4 LTS, 14.x

πŸš€ Installation

composer require move-elevator/typo3-repeatable-form-elements

Add the site set tritum/repeatable-form-elements to the dependencies of your site package's site set:

# Configuration/Sets/YourSitePackage/config.yaml
dependencies:
  - tritum/repeatable-form-elements

πŸ’‘ Usage

  1. Open the TYPO3 form editor and create or open a form.
  2. Add a new element β€” the modal lists the Repeatable container.
  3. Add fields with validators to the container.
  4. In the frontend, the container renders as a <fieldset> with copy and remove buttons.

Extended SaveToDatabaseFinisher

An extended version of the SaveToDatabaseFinisher is included for persisting repeatable container data. See the example form definition.

βš™οΈ Configuration

To deactivate the copying of variants, disable the feature flag:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['repeatableFormElements.copyVariants'] = false;

πŸ”Œ Extendability

Event Description
CopyVariantEvent Modify or disable specific copied variants during container duplication.
AfterBuildingFinishedEvent React after a form renderable has been built/copied by the repeatable container logic. Replaces the removed afterBuildingFinished SC_OPTIONS hook.

🀝 Contributing

Contributions are welcome! See CONTRIBUTING.md for setup instructions, linting, testing and the PR workflow.

πŸ“ Changelog

See CHANGELOG.md for a list of changes.

πŸ† Credits

Originally created by Ralf Zimmermann / dreistrom.land. See the original repository for the full list of contributors.

This fork is maintained by move:elevator.

πŸ“„ License

GPL-2.0-or-later β€” see LICENSE for details.

About

πŸ” TYPO3 Extension with a custom repeatable form element

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

  • PHP 58.2%
  • Shell 23.8%
  • JavaScript 14.9%
  • HTML 3.1%