PHPackages                             inspiredminds/contao-fieldset-duplication - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. inspiredminds/contao-fieldset-duplication

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

inspiredminds/contao-fieldset-duplication
=========================================

Contao extension to allow the duplication of form fieldsets in the front end by the user for additional input fields.

2.3.4(1mo ago)158.2k↓41.7%7[2 issues](https://github.com/inspiredminds/contao-fieldset-duplication/issues)[1 PRs](https://github.com/inspiredminds/contao-fieldset-duplication/pulls)1LGPL-3.0-or-laterPHPPHP &gt;=8.0

Since Dec 16Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/inspiredminds/contao-fieldset-duplication)[ Packagist](https://packagist.org/packages/inspiredminds/contao-fieldset-duplication)[ Docs](https://github.com/inspiredminds/contao-fieldset-duplication)[ GitHub Sponsors](https://github.com/sponsors/fritzmg)[ RSS](/packages/inspiredminds-contao-fieldset-duplication/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (37)Used By (1)

[![](https://camo.githubusercontent.com/ce155b4fe0b191631f0a7d4e2573bfc54673fc194ae77d3e4545b65251204884/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d6669656c647365742d6475706c69636174696f6e2e737667)](https://packagist.org/packages/inspiredminds/contao-fieldset-duplication)[![](https://camo.githubusercontent.com/db13aa617395d079225bb98022945fc39d9a6d00a0e8b4e6ffc2c7214cf13853/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d6669656c647365742d6475706c69636174696f6e2e737667)](https://packagist.org/packages/inspiredminds/contao-fieldset-duplication)

Contao Fieldset Duplication
===========================

[](#contao-fieldset-duplication)

Contao extension to allow the duplication of form fieldsets in the front end by the user for additional input fields.

[![Example screenshot of the front end](https://raw.githubusercontent.com/inspiredminds/contao-fieldset-duplication/master/example.png)](https://raw.githubusercontent.com/inspiredminds/contao-fieldset-duplication/master/example.png)

You need to enable the `js_fieldset_duplication` template in your page layout. The following options can be changed:

```

  document.addEventListener('DOMContentLoaded', function() {
    var elements = document.querySelectorAll('fieldset.allow-duplication');

    elements.forEach(function(element) {
      fieldsetDuplication(element, {
        /* when true, prepends the button wrapper within the fieldset, instead of appending */
        prepend: false,
        /* text content of the add button */
        buttonAdd: '+',
        /* text content of the remove button */
        buttonRemove: '&times;',
        /* a custom widget CSS selector */
        widgetSelector: '.form-widget', // defaults to .widget
      });
    });
  });

```

If you want to store the additional data in your database table (using the form generator's ability to store the data in the database), you need to add a column called `fieldset_duplicates` to your target table. This column will then contain the additionally submitted fields in a JSON encoded object.

Note

Version `2.1.0` introduced the `js_fieldset_duplication` template. There also exists a jQuery version under the name `j_fieldset_duplication` from previous versions of this extension for BC purposes. Make sure to *not*enable both these templates.

Notification tokens
-------------------

[](#notification-tokens)

If you need your fieldset rendered as notification tokens, you can define notification token formats. Just define the fieldset name, a format name and select a template. The fieldset will be available at token `form_{NAME}_{FORMAT}` (`{NAME}_{FORMAT}` if you don't use the notification center).

The following templates are shipped with this extension:

- *nc\_fieldset\_duplication\_text*: Renders the fieldset data as `label: value` pairs
- *nc\_fieldset\_duplication\_html*: Renders the fieldset data as html table
- *nc\_fieldset\_duplication\_json*: Renders the fieldset data as json string

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 62.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~12 days

Total

34

Last Release

45d ago

Major Versions

1.4.1 → 2.0.02022-11-01

PHP version history (5 changes)1.0.0PHP &gt;=7.1

1.1.2PHP ^7.1 || ^8.0

1.4.0PHP &gt;=7.4

2.2.1PHP 8.0

2.2.2PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (38 commits)")[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (7 commits)")[![qzminski](https://avatars.githubusercontent.com/u/193483?v=4)](https://github.com/qzminski "qzminski (6 commits)")[![cliffparnitzky](https://avatars.githubusercontent.com/u/1247552?v=4)](https://github.com/cliffparnitzky "cliffparnitzky (4 commits)")[![samuelheer](https://avatars.githubusercontent.com/u/3831492?v=4)](https://github.com/samuelheer "samuelheer (2 commits)")[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (1 commits)")[![MarkejN](https://avatars.githubusercontent.com/u/38976632?v=4)](https://github.com/MarkejN "MarkejN (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (1 commits)")

---

Tags

contaocontao-bundlecontaoformfieldsetduplication

### Embed Badge

![Health badge](/badges/inspiredminds-contao-fieldset-duplication/health.svg)

```
[![Health](https://phpackages.com/badges/inspiredminds-contao-fieldset-duplication/health.svg)](https://phpackages.com/packages/inspiredminds-contao-fieldset-duplication)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[terminal42/contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!

41167.9k10](/packages/terminal42-contao-leads)[terminal42/contao-conditionalformfields

conditionalformfields extension for Contao Open Source CMS; Display form fields based on conditionis!

2168.5k1](/packages/terminal42-contao-conditionalformfields)[plenta/contao-jobs-basic-bundle

Basic Job Manager for Contao (including Google Jobs).

335.1k](/packages/plenta-contao-jobs-basic-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
