# alekseon/widget-forms

> N/A

`composer require alekseon/widget-forms`

Canonical URL: https://packagento.com/alekseon/widget-forms

## At a glance

- **Vendor**: alekseon (https://packagento.com/alekseon.md)
- **Latest version**: 102.5.7 — released 2026-02-11
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/alekseon/widget-forms and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require alekseon/widget-forms:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

N/A

## README

<h1 align="center">  
<br/>
  <img src="https://i.imgur.com/b2oclHA.png" alt="Magento 2 Widget Form" width="400">  
  <br>  
  Alekseon_WidgetForms
  <br>  
</h1>  
  
<h4 align="center">Place forms as widgets to CMS page in Magento 2</h4>  
  
<p align="center"><i>Let you add forms to CMS pages</i></p>  

### Demo

<a target="_blank" href="https://widget-forms.alekseon.com/">https://widget-forms.alekseon.com/</a>

### Examples of usage

- <a href="https://github.com/Alekseon/magento2-widget-forms/wiki/Ask-About-Product">Ask About Product</a><br>
- <a href="https://github.com/Alekseon/magento2-widget-forms/wiki/Multi-step-Survey">Multi-step Survey</a> (soon)<br>

### Videos

<div align="center">
<a href="https://www.youtube.com/watch?v=V6P5MBqiUJo" target="_blank">
  <img src="https://img.youtube.com/vi/V6P5MBqiUJo/0.jpg" alt="How to modify contact us form in Magento Open Source">
</a>

<a href="https://www.youtube.com/watch?v=0JoRBGZZMK4" target="_blank">
  <img src="https://img.youtube.com/vi/0JoRBGZZMK4/0.jpg" alt="How to modify contact us form in Magento Open Source">
</a>
</div>

### Installation  
  
In your Magento2 root directory, you may install this package via composer:  
  
```  
composer require alekseon/widget-forms 
bin/magento setup:upgrade  
```  
  
  
### Support  
  
CJM Ver. | Magento 2.0 | Magento 2.1 | Magento 2.2 | Magento 2.3 | Magento 2.4  
--- | :---: | :---: | :---: | :---: | :---:  
1.x | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark:  
  
  
### Features  
  
#### Add Forms to CMS Pages 

You can place any Form you will create by [Alekseon_CustomFormsBuilder](https://github.com/Alekseon/magento2-custom-forms-builder) extension to CMS page.

Visit our [alekseon.com](https://alekseon.com/en/blog/post/module-widget-forms/) website for more information about the Widget.

<img src="https://i.imgur.com/0foIQFe.png"/>  

### Hyvä Theme compatibility

[<img src="https://i.imgur.com/nibkuEV.png" alt="Hyvä compatibility" width="140"/>](https://hyva.io/)
<br>
Alekseon_WidgetForms is also available as a [Compatibility module](https://gitlab.hyva.io/hyva-public/module-tracker/-/issues/236) for [Hyvä Themes](https://hyva.io/)
  
### Issue Tracking / Upcoming Features  
  
For issues, please use the [issue tracker](https://github.com/Alekseon/widget-forms/issues).  
  
Issues keep this project alive and strong, so let us know if you find anything!  
  <!--
We're planning on pumping out a ton of new features, which you can follow on our [project page](https://github.com/Alekseon/widget-forms/projects/1).  
  -->
#### Development / Contribution  
  
If you want to contribute please follow the below instructions:  
  
1. Create an issue and describe your idea  
2. [Fork this repository](https://github.com/Alekseon/widget-forms/fork)  
3. Create your feature branch (`git checkout -b my-new-feature`)  
4. Commit your changes  
5. Publish the branch (`git push origin my-new-feature`)  
6. Submit a new Pull Request for review  
  
### Wiki

<a href="https://github.com/Alekseon/magento2-widget-forms/wiki">https://github.com/Alekseon/magento2-widget-forms/wiki</a>

### Maintainers  
  
Current maintainers:  

* [Linek](https://github.com/Linek)
* [marcinfr](https://github.com/marcinfr)
  
See also our [contributors](https://github.com/Alekseon/widget-forms/graphs/contributors)  
  
  
### License  
  
[The Open Software License 3.0 (OSL-3.0)](https://opensource.org/licenses/OSL-3.0)

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

### [Unreleased]
#### Changed
#### Fixed
#### Added
#### Removed

### [102.5.7] - 2026-02-11
#### Fixed
- fix error element ID already exists when Blocks HTML output cache is disabled.
- cache key include default values, for ask about product, sku value were cached.

### [102.5.6] - 2025-06-17
#### Fixed
- set form_id as required in widget
#### Added
- "Not Selected" option in available forms options

### [102.5.5] - 2025-01-22
#### Fixed
- widget option - Success display mode - some CS fixes

### [102.5.4] - 2025-01-17
#### Added
- widget option - Success display mode - redirect to Success Page

### [102.5.3] - 2024-11-28
#### changed
- revert last changes (use prepareLayout) - when widget has been added by admin/content/widgets, widget data was not set yet

### [102.5.2] - 2024-11-17
#### changed
- use prepareLayout method instead of toHtml

### [102.5.1] - 2024-11-14
#### Fixed
- fix for missing form title and description

### [102.5.0] - 2024-11-07
#### Changed
- group tabs in tabs_container
#### Added
- after_form blocks caontainer
- form object in alekseon_widget_form_after_submit event

### [102.4.4] - 2024-09-25
#### Changed
- removed success cms block from widget configuration and allow cms block in Form Submit Success Message
#### Added
- alekseon_widget_form_after_subscribe event

### [102.4.3] - 2024-06-24
#### Added
- added success display mode option

### [102.4.2] - 2024-06-24
#### Changed
- Translate labels (https://github.com/Alekseon/AlekseonEav/issues/45)

### [102.4.1] - 2024-02-26
#### Fixed
- fix ajax error: "complete is not a function"

### [102.4.0] - 2023-12-03
#### Changed
- refactoring - removed UI component on frontend

### [102.3.0] - 2023-06-21
#### Changed
- frontend inputs moved from Alekseon_WidgetForms to Alekseon_CustonFormsFrontend
#### Added
- form wrapper class

### [102.2.7] - 2023-05-02
#### Changed
- changes for tests in github actions

### [102.2.6] - 2023-05-01
#### Added
- added email validation for newsletter email input in admin
#### Fixed
- code quality fixes (https://github.com/Alekseon/magento2-widget-forms/issues/17)

### [102.2.3] - 2023-03-28
#### Added
- field containers css classes (for hyva)

### [102.2.2] - 2023-03-12
#### Fixed
- fix for cache issue
- removed gap and fix label displaye in image input template

### [102.2.1] - 2023-03-12
#### Added
- "*" for required fields
- cache tags
#### Fixed
- select default value on radio button input
- stop opening first tab after submit if there is only one tab

### [102.2.0] - 2023-03-04
#### Added
- rating type input (stars)
#### Fixed
- default values for select
- fix widget html code

### [102.1.6] - 2023-02-27
#### Fixed
- fix for backward compatibility

### [102.1.5] - 2022-11-22
#### Added
- class "widget-form-fields-container" for div container

### [102.1.4] - 2022-11-19
#### Changed
- modifications for native magento captcha
#### Fixed
- decreased gap between form and submit button

### [102.1.3] - 2022-10-27
#### Added
- email validation for logged in customers
- subsribe to newsletter as customer if logged in 
#### Fixed
- fix for install data

### [102.1.2] - 2022-10-22
#### Changed
- change widget block parameter identifier to form_identifier

### [102.1.1] - 2022-10-22
#### Removed
- removed FormSubmitFailureMessage attribute
#### Added
- added FormSubmitSuccessTitle attribute
#### Changed
- changes in displaying success/error messages on form submit

_(Changelog truncated for .md surface. Full history on https://packagento.com/alekseon/widget-forms.)_

## Recent Versions

| Version | Released |
|---|---|
| 102.5.7 | 2026-02-11 |
| 102.5.6 | 2025-06-17 |
| 102.5.5 | 2025-01-22 |
| 102.5.4 | 2025-01-21 |
| 102.5.3 | 2024-11-28 |
| 102.5.2 | 2024-11-17 |
| 102.5.1 | 2024-11-14 |
| 102.5.0 | 2024-11-07 |
| 102.4.4 | 2024-09-26 |
| 102.4.3 | 2024-08-16 |

Showing 10 of 49 versions. Full release history on https://packagento.com/alekseon/widget-forms.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| alekseon/custom-forms-frontend | ^100.1.0 |
| alekseon/widget-forms-re-captcha | 100.2.* |

## Quality

Latest release (102.5.7) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 85 | 8 errors, 77 warnings (ruleset: Magento2) — 56 auto-fixable with phpcbf |
| PHPMD | Warning | 6 | 6 rule violations (EmptyCatchBlock:5, IfStatementAssignment:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 25 | 25 | – | – |
| 2.4.8 | – | 25 | 25 | – |
| 2.4.9 | – | – | 25 | 25 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["alekseon/widget-forms"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

alekseon is a Magento 2 vendor on Packagento. See https://packagento.com/alekseon.md for their full catalogue.

