PHPackages                             cliffparnitzky/form-dependent-mandatory-field - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. cliffparnitzky/form-dependent-mandatory-field

ActiveContao-bundle[Validation &amp; Sanitization](/categories/validation)

cliffparnitzky/form-dependent-mandatory-field
=============================================

Provides an additional option for form field to be defined as dependent mandatory. Field is mandatory if another field (or more) is filled / or not.

3.0.1(9mo ago)74.7k↓50%[2 issues](https://github.com/cliffparnitzky/FormDependentMandatoryField/issues)LGPL-3.0-or-laterPHPPHP ^8.1CI passing

Since Feb 25Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/cliffparnitzky/FormDependentMandatoryField)[ Packagist](https://packagist.org/packages/cliffparnitzky/form-dependent-mandatory-field)[ GitHub Sponsors](https://github.com/cliffparnitzky)[ RSS](/packages/cliffparnitzky-form-dependent-mandatory-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/23d9e8ca0943867f91220216d7fce8f5dc8866540ed55b34a4195855c145fc0f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6966667061726e69747a6b792f666f726d2d646570656e64656e742d6d616e6461746f72792d6669656c642e7376673f7374796c653d666c6174)](https://packagist.org/packages/cliffparnitzky/form-dependent-mandatory-field)[![Installations via composer per month](https://camo.githubusercontent.com/94de67cc6b2a338d0594aa966ea741f5142b8fb623a6a5919491a323189be65b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f636c6966667061726e69747a6b792f666f726d2d646570656e64656e742d6d616e6461746f72792d6669656c642e7376673f7374796c653d666c6174)](https://packagist.org/packages/cliffparnitzky/form-dependent-mandatory-field)[![Installations via composer total](https://camo.githubusercontent.com/f2e0276f2dc8d73dfdfdf9bc2434880fc5625c04d6f76d5d9978f427520aca8e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6966667061726e69747a6b792f666f726d2d646570656e64656e742d6d616e6461746f72792d6669656c642e7376673f7374796c653d666c6174)](https://packagist.org/packages/cliffparnitzky/form-dependent-mandatory-field)

Contao Extension: FormDependentMandatoryField
=============================================

[](#contao-extension-formdependentmandatoryfield)

Provides an additional option for form fields to be defined as dependent mandatory. Field is mandatory, if another field (or more) is filled / or not / has a special value.

This special validation is executed server side and only available for forms with submission method `POST` (there are no settings in form fields for forms with `GET`).

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

[](#installation)

Install the extension via composer: [cliffparnitzky/form-dependent-mandatory-field](https://packagist.org/packages/cliffparnitzky/form-dependent-mandatory-field).

If you prefer to install it manually, download the latest release here:

Tracker
-------

[](#tracker)

Compatibility
-------------

[](#compatibility)

- Contao version &gt;= 5.3.0

Dependency
----------

[](#dependency)

This extension is dependent on the following extensions:

- [\[menatwork/contao-multicolumnwizard-bundle\]](https://packagist.org/packages/menatwork/contao-multicolumnwizard-bundle)

Screenshots
-----------

[](#screenshots)

[![Screenshot 1](screenshot1.jpg)](screenshot1.jpg)[![Screenshot 2](screenshot2.jpg)](screenshot2.jpg)

Additional information
----------------------

[](#additional-information)

### CSS Tip

[](#css-tip)

Adding special CSS, will show the difference between **mandatory** and **dependent mandatory** form fields.

This is only an example:

```
label.dependent.mandatory:after {
	content: '(*)';
	font-size: 9px;
	vertical-align: super;
	color: #FF7777;
}

```

With the CSS above, a form like the following will be created:

[![Screenshot 3](screenshot3.jpg)](screenshot3.jpg)

Thank you
---------

[](#thank-you)

- e-spin Berlin - Ingolf Steinhardt ([zonky2](https://github.com/zonky2)) for the support of development
- Contao Academy - Christian Feneberg ([contaoacademy](https://github.com/contaoacademy)) for the support of development
- leycom - media solutions - Ralph Leyendecker ([leycommediasolutions](https://github.com/leycommediasolutions)) for the support of development

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance55

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% 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 ~348 days

Recently: every ~408 days

Total

12

Last Release

270d ago

Major Versions

2.2.3 → 3.0.02025-06-03

PHP version history (2 changes)2.0.0PHP &gt;=5.3

3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c34c817a5fb386eaa052d42db39572aae9d86a2c37896c38b080e7dde9bcb129?d=identicon)[cliffparnitzky](/maintainers/cliffparnitzky)

---

Top Contributors

[![cliffparnitzky](https://avatars.githubusercontent.com/u/1247552?v=4)](https://github.com/cliffparnitzky "cliffparnitzky (61 commits)")[![contaoacademy](https://avatars.githubusercontent.com/u/23719181?v=4)](https://github.com/contaoacademy "contaoacademy (1 commits)")

---

Tags

contaoformform-fieldmandatorymandatory form fielddependent mandatory form field

### Embed Badge

![Health badge](/badges/cliffparnitzky-form-dependent-mandatory-field/health.svg)

```
[![Health](https://phpackages.com/badges/cliffparnitzky-form-dependent-mandatory-field/health.svg)](https://phpackages.com/packages/cliffparnitzky-form-dependent-mandatory-field)
```

###  Alternatives

[terminal42/contao-leads

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

41167.9k10](/packages/terminal42-contao-leads)[inspiredminds/contao-fieldset-duplication

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

158.2k1](/packages/inspiredminds-contao-fieldset-duplication)

PHPackages © 2026

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