PHPackages                             dd/evolutioncms-plugins-managermanager-mm\_dddependentfields - 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. dd/evolutioncms-plugins-managermanager-mm\_dddependentfields

ActiveLibrary

dd/evolutioncms-plugins-managermanager-mm\_dddependentfields
============================================================

The plugin allows to link 2 fields with a master-dependent relation. Dependent field will only be used (displayed) only when Master field has a specific value. Value of Dependent field will also be cleared when it is not used (hidden).

1.0.0(2y ago)00JavaScriptPHP &gt;=7.4.0

Since Jan 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DivanDesign/EvolutionCMS.plugins.ManagerManager.mm_ddDependentFields)[ Packagist](https://packagist.org/packages/dd/evolutioncms-plugins-managermanager-mm_dddependentfields)[ Docs](https://code.divandesign.biz/modx/mm_dddependentfields)[ RSS](/packages/dd-evolutioncms-plugins-managermanager-mm-dddependentfields/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

(MODX)EvolutionCMS.plugins.ManagerManager.mm\_ddDependentFields
===============================================================

[](#modxevolutioncmspluginsmanagermanagermm_dddependentfields)

The plugin allows to link 2 fields with a master-dependent relation:

- Dependent field will only be used (displayed) only when Master field has a specific value.
- Value of Dependent field will also be cleared when it is not used (hidden).

Requires
--------

[](#requires)

- PHP &gt;= 7.4 (not tested with older versions)
- [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.ru/modx/managermanager) &gt;= 0.7

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

[](#installation)

To install you must unzip the archive to `/assets/plungins/managermanager/widgets/dependentFields/`.

You may also read this documentation:

- [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.ru/modx/managermanager)
- [(MODX)EvolutionCMS.modules.ddMMEditor](https://code.divandesign.ru/modx/ddmmeditor)

Parameters description
----------------------

[](#parameters-description)

- `$params`

    - Desctription: The object of parameters.
    - Valid values:
        - `stdClass`
        - `arrayAssociative`
    - **Required**
- `$params->masterFieldName`

    - Desctription: The name of the document field (or TV) to be Master.
    - Valid values: `string`
    - **Required**
- `$params->masterFieldValue`

    - Desctription: The value of the Master field when the Dependent field should be used.
    - Valid values: `string`
    - Default: `null`
- `$params->dependentFieldName`

    - Desctription: The name of the document field (or TV) to be Dependent.
    - Valid values: `string`
    - **Required**
- `$params->roles`

    - Desctription: The CMS user roles that the widget is applied to.
    - Valid values:
        - `array`
        - `stringCommaSeparated`
        - `''` — when this parameter is empty then widget is applied to the all roles
    - Default value: `''`
- `$params->roles[$i]`

    - Desctription: CMS user role ID.
    - Valid values: `integer`
    - **Required**
- `$params->templates`

    - Desctription: Document templates IDs for which the widget is applied to.
    - Valid values:
        - `array`
        - `stringCommaSeparated`
        - `''` — empty value means the widget is applying to all templates
    - Default value: `''`
- `$params->templates[$i]`

    - Desctription: Template ID.
    - Valid values: `integer`
    - **Required**

CMS events
----------

[](#cms-events)

- `OnDocFormPrerender`
- `OnDocFormRender`

Examples
--------

[](#examples)

### Make a page's publish date dependent on its publish status

[](#make-a-pages-publish-date-dependent-on-its-publish-status)

```
mm_ddDependentFields([
	'masterFieldName' => 'published',
	'masterFieldValue' => '1',
	'dependentFieldName' => 'pub_date',
]);
```

- `pub_date` will be visible only when `published` is on (== `1`).
- Value of `pub_date` will be cleared when `published` is off.

Links
-----

[](#links)

- [Home page](https://code.divandesign.ru/modx/mm_dddependentfields)
- [Telegram chat](https://t.me/dd_code)
- [Packagist](https://packagist.org/packages/dd/evolutioncms-plugins-managermanager-mm_dddependentfields)
- [GitHub](https://github.com/DivanDesign/EvolutionCMS.plugins.ManagerManager.mm_ddDependentFields)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09b81986267e62b5fde1473b40aa6f11f7bc26c1c29d5f80f2768c8788e08110?d=identicon)[dd](/maintainers/dd)

---

Top Contributors

[![Ronef](https://avatars.githubusercontent.com/u/1333424?v=4)](https://github.com/Ronef "Ronef (1 commits)")

---

Tags

modxMODX Evoevoevolution-cmsmodx evolutionevo cmsevolutioncmsdivandesigndd studiodd groupmmdependent-fieldsmanagermanagermm widgetmm\_dddependentfieldsdependentfields

### Embed Badge

![Health badge](/badges/dd-evolutioncms-plugins-managermanager-mm-dddependentfields/health.svg)

```
[![Health](https://phpackages.com/badges/dd-evolutioncms-plugins-managermanager-mm-dddependentfields/health.svg)](https://phpackages.com/packages/dd-evolutioncms-plugins-managermanager-mm-dddependentfields)
```

PHPackages © 2026

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