PHPackages                             fullscreeninteractive/silverstripe-manyfield - 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. fullscreeninteractive/silverstripe-manyfield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

fullscreeninteractive/silverstripe-manyfield
============================================

SilverStripe FormField for adding dynamic data to forms.

2.1.1(2mo ago)76541[1 issues](https://github.com/fullscreeninteractive/silverstripe-manyfield/issues)BSD-3-ClausePHPCI passing

Since Dec 13Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/fullscreeninteractive/silverstripe-manyfield)[ Packagist](https://packagist.org/packages/fullscreeninteractive/silverstripe-manyfield)[ Docs](http://silverstripe.org)[ RSS](/packages/fullscreeninteractive-silverstripe-manyfield/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (8)Dependencies (10)Versions (9)Used By (0)

SilverStripe Many Field
=======================

[](#silverstripe-many-field)

[![Version](https://camo.githubusercontent.com/7a7f94bfea28b470f32060d45ef12ad11c6f83c60ee5f3dc71d250b808e9c59b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66756c6c73637265656e696e7465726163746976652f73696c7665727374726970652d6d616e796669656c642e737667)](https://packagist.org/packages/fullscreeninteractive/silverstripe-manyfield)[![License](https://camo.githubusercontent.com/f04b18692cf7c95582058f6057fb815ea1db96d9f7df7fff8e555b9f5576195b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66756c6c73637265656e696e7465726163746976652f73696c7665727374726970652d6d616e796669656c642e737667)](license.md)[![CI](https://github.com/fullscreeninteractive/silverstripe-manyfield/actions/workflows/ci.yml/badge.svg)](https://github.com/fullscreeninteractive/silverstripe-manyfield/actions/workflows/ci.yml)

A reusable approach to a form field which allows you to create and delete rows in either custom built forms or in Userforms.

This is designed to work on the front-end with limited javascript (i.e it does not require `GridField` or entwine).

Each row can relate to a DataObject subclass or simply to be used to capture the data as an array.

Installation
------------

[](#installation)

```
composer require fullscreeninteractive/silverstripe-manyfield

```

Supports Silverstripe CMS `^6`.

Development
-----------

[](#development)

Install development dependencies:

```
composer install

```

Run static analysis:

```
composer lint

```

Run tests:

```
composer test

```

Usage
-----

[](#usage)

[![Image of Function](https://raw.githubusercontent.com/fullscreeninteractive/silverstripe-manyfield/master/client/img/demo.png)](https://raw.githubusercontent.com/fullscreeninteractive/silverstripe-manyfield/master/client/img/demo.png)

```
use FullscreenInteractive\ManyField\ManyField;

$fields = new FieldList(
    $many = ManyField::create('SwabList', [
        TextField::create('Swab'),
        TextField::create('TestSite'),
        TextField::create('Description'),
        TextField::create('Material')
    ])
);
```

Data will either be saved as `setSwabList($data)`, `SwabList` database field or in the `SwabList` relation. If you are saving into a relation such as `HasMany`or `ManyMany` list then make sure you include a hidden field in your field list.

```
    $many = ManyField::create('SwabList', [
        HiddenField::create('ID', ''),
        TextField::create('Swab'),
        TextField::create('TestSite'),
        TextField::create('Description'),
        TextField::create('Material')
    ]);

```

Sorting
-------

[](#sorting)

Include a Hidden field `Sort` and make sure sorting is enabled.

```
    $many = ManyField::create('SwabList', [
        HiddenField::create('ID', ''),
        HiddenField::create('Sort', ''),
        TextField::create('TestSite')
    ])->setCanSort(true);

```

Required Fields
---------------

[](#required-fields)

```
$many = ManyField::create('SwabList', [
    TextField::create('TestSite')->setRequired(true)
])->setCanSort(true);

```

Javascript Events
-----------------

[](#javascript-events)

If you have UI handlers that need to run when fields are added or removed (such as Date Pickers) create a handler on your `` element and listen for either:

- `manyFieldAdded`
- `manyFieldRemoved`

FAQ
---

[](#faq)

### When I use this with File fields I don't get files uploaded?

[](#when-i-use-this-with-file-fields-i-dont-get-files-uploaded)

Make sure your form encoding is set to the correct MIME type.

```
$form->setEncType(Form::ENC_TYPE_MULTIPART);

```

Licence
-------

[](#licence)

BSD 3-Clause License

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance85

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.1% 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 ~228 days

Recently: every ~81 days

Total

8

Last Release

61d ago

Major Versions

1.1.0 → 2.0.02026-04-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101629?v=4)[Will Rossiter](/maintainers/wilr)[@wilr](https://github.com/wilr)

---

Top Contributors

[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (39 commits)")[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (2 commits)")

---

Tags

silverstripeversioned

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fullscreeninteractive-silverstripe-manyfield/health.svg)

```
[![Health](https://phpackages.com/badges/fullscreeninteractive-silverstripe-manyfield/health.svg)](https://phpackages.com/packages/fullscreeninteractive-silverstripe-manyfield)
```

###  Alternatives

[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39317.0k29](/packages/lekoala-silverstripe-cms-actions)[lekoala/silverstripe-softdelete

Soft delete extension for SilverStripe

11212.9k](/packages/lekoala-silverstripe-softdelete)[silverstripe/versioned-snapshots

SilverStripe Versioned Snapshots

1418.2k1](/packages/silverstripe-versioned-snapshots)

PHPackages © 2026

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