PHPackages                             tecnocen/yii2-disable-submit-buttons - 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. tecnocen/yii2-disable-submit-buttons

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

tecnocen/yii2-disable-submit-buttons
====================================

Yii2 asset to automatically disable submit buttons on Yii2 ActiveForm.

0.2(9y ago)2179BSD-3-ClauseJavaScript

Since Jun 10Pushed 8y ago3 watchersCompare

[ Source](https://github.com/tecnocen-com/yii2-disable-submit-buttons)[ Packagist](https://packagist.org/packages/tecnocen/yii2-disable-submit-buttons)[ Docs](https://github.com/tecnocen-com/yii2-disable-submit-buttons)[ RSS](/packages/tecnocen-yii2-disable-submit-buttons/feed)WikiDiscussions master Synced 2mo ago

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

Tecnocen.com Yii2 Disable Buttons
=================================

[](#tecnocencom-yii2-disable-buttons)

Yii2 asset to automatically disable submit buttons on Yii2 [ActiveForm](http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist "tecnocen/yii2-disable-submit-buttons:*"
```

or add

```
"tecnocen/yii2-disable-submit-buttons": "*"

```

to the `require` section of your `composer.json` file.

Register Asset
--------------

[](#register-asset)

Register the `tecnocen\assets\ActiveFormDisableSubmitButonsAsset`, preferably on your `AppAsset` dependencies

```
class AppAsset extends yii\web\AssetBundle
{
    public $depends = [
        'tecnocen\\disablesubmitbutton\\assets\\ActiveFormDisableSubmitButtonsAsset',
        // other dependencies
    ];
}
```

Usage
-----

[](#usage)

Add css class `disable-submit-buttons` to your \[ActiveForm\] () widget.

Optionally if you want to change the text on a button, add the attribute `data-disabled-text` with the text to be changed.

```
$form = ActiveForm::begin([
    'options' => ['class' => 'disable-submit-buttons'],
    // other configurations
]);

    // inputs

    Html::submitButton('Submit', [
        // optional, will show the value of `data-disabled-text` attribute
        // while handling the validation and submit
        'data' => ['disabled-text' => 'Please Wait']
    ])

$form->end();
```

With this the `:input[type="submit"]` buttons will be disabled and if the validation fails the buttons will be enabled again

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.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 ~0 days

Total

2

Last Release

3623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2341d88f3cdea0c2474cfbf59e5cf6dab5dd6a026d7846fabf219f2a93be1641?d=identicon)[neverabe](/maintainers/neverabe)

---

Top Contributors

[![ayrozjlc](https://avatars.githubusercontent.com/u/10901620?v=4)](https://github.com/ayrozjlc "ayrozjlc (7 commits)")[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (3 commits)")[![neverabe](https://avatars.githubusercontent.com/u/1173807?v=4)](https://github.com/neverabe "neverabe (2 commits)")

---

Tags

jqueryyii2yiidisableactiveform

### Embed Badge

![Health badge](/badges/tecnocen-yii2-disable-submit-buttons/health.svg)

```
[![Health](https://phpackages.com/badges/tecnocen-yii2-disable-submit-buttons/health.svg)](https://phpackages.com/packages/tecnocen-yii2-disable-submit-buttons)
```

###  Alternatives

[faryshta/yii2-disable-submit-buttons

Yii2 asset to automatically disable submit buttons on Yii2 ActiveForm.

16458.9k](/packages/faryshta-yii2-disable-submit-buttons)[nullref/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

7290.3k](/packages/nullref-yii2-datatables)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)

PHPackages © 2026

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