PHPackages                             r-martins/mautic-plugin-fix-dropdown - 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. r-martins/mautic-plugin-fix-dropdown

ActiveMautic-plugin[Utility &amp; Helpers](/categories/utility)

r-martins/mautic-plugin-fix-dropdown
====================================

Workaround/plugin: restores contact autofill on select/country fields when cached form HTML emits attributes before id="…" or options use whitespace before closing &gt;.

1.0.1(4w ago)03GPL-3.0-or-laterPHPPHP &gt;=8.2

Since May 13Pushed 4w agoCompare

[ Source](https://github.com/r-martins/mautic-plugin-fix-dropdown)[ Packagist](https://packagist.org/packages/r-martins/mautic-plugin-fix-dropdown)[ Docs](https://github.com/r-martins/mautic-plugin-fix-dropdown)[ RSS](/packages/r-martins-mautic-plugin-fix-dropdown/feed)WikiDiscussions master Synced 1w ago

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

Fix Dropdown (Composer plugin for Mautic)
=========================================

[](#fix-dropdown-composer-plugin-for-mautic)

Decorates [`Mautic\FormBundle\Helper\FormFieldHelper`](https://github.com/mautic/mautic/tree/7.x/app/bundles/FormBundle/Helper/FormFieldHelper.php) so **select** / **country** fields honour **Behaviour → Enable auto-fill** when:

1. Cached form HTML emits other attributes **before** `id="mauticform_input_{form}_{alias}"` on ``, which breaks the core regex anchored at ``), which breaks core `str_replace` on the exact substring ``.

Requirements
------------

[](#requirements)

- Mautic **7.x** (matches `composer.json`: `mautic/core-lib:^7.0`, PHP **8.2+**).

For **older Mautic** versions, bump the constraint in `composer.json` locally only if you have verified compatibility.

Install
-------

[](#install)

```
composer require r-martins/mautic-plugin-fix-dropdown
```

Then enable **FixDropdown** under **Plugins** in Mautic and clear cache:

```
php bin/console cache:clear
```

Uninstall
---------

[](#uninstall)

Disable the plugin in the UI, remove the Composer package, then clear cache.

Upstream
--------

[](#upstream)

Please open / track a core fix in [mautic/mautic](https://github.com/mautic/mautic). Draft issue text: see `UPSTREAM_ISSUE.md` in this repository.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

28d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc001164ed8af49820c2e2289141ad0168a056ef6fbe019f18d1847b8829417a?d=identicon)[r-martins](/maintainers/r-martins)

---

Top Contributors

[![r-martins](https://avatars.githubusercontent.com/u/191149?v=4)](https://github.com/r-martins "r-martins (2 commits)")

---

Tags

MauticdropdownselectFormsautofillmautic-pluginpreference centerFormFieldHelper

### Embed Badge

![Health badge](/badges/r-martins-mautic-plugin-fix-dropdown/health.svg)

```
[![Health](https://phpackages.com/badges/r-martins-mautic-plugin-fix-dropdown/health.svg)](https://phpackages.com/packages/r-martins-mautic-plugin-fix-dropdown)
```

###  Alternatives

[mautic/grapes-js-builder-bundle

GrapesJS Builder with MJML support for Mautic

5689.5k12](/packages/mautic-grapes-js-builder-bundle)

PHPackages © 2026

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