alekseon / widget-forms

alekseon/widget-forms

N/A

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0, AFL-3.0


Magento 2 Widget Form
Alekseon_WidgetForms

Place forms as widgets to CMS page in Magento 2

Let you add forms to CMS pages

Demo

https://widget-forms.alekseon.com/

Examples of usage

Videos

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 extension to CMS page.

Visit our alekseon.com website for more information about the Widget.

0foIQFe.png

Hyvä Theme compatibility

Hyvä compatibility


Alekseon_WidgetForms is also available as a Compatibility module for Hyvä Themes

Issue Tracking / Upcoming Features

For issues, please use the issue tracker.

Issues keep this project alive and strong, so let us know if you find anything!

Development / Contribution

If you want to contribute please follow the below instructions:

  1. Create an issue and describe your idea
  2. Fork this repository
  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

https://github.com/Alekseon/magento2-widget-forms/wiki

Maintainers

Current maintainers:

See also our contributors

License

The Open Software License 3.0 (OSL-3.0)

Changelog

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

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.

[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

[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

[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

[102.1.0] - 2022-10-22

Fixed

  • fix infinite loading on submit where returned server error

Added

  • current product default value
  • customer email default value
  • hidden text input type block
  • form identifier parameter for widget
  • create getter methods for success and failure message
  • current cms page default value provider
  • default text defaul value provider

[102.0.23]

Fixed

  • fix for warning in isSelected method for Select Field
  • fix validation for newsletter email

Changed

  • TextFormAttribute source extends from CustomFormBuilder module

[102.0.22] - 2022-10-06

Fixed

  • compatibility to attribute default values

[102.0.21] - 2022-10-05

Added

  • compatibility to attribute default values

[102.0.19] - 2022-10-04

Changed

  • changed composer requirements
  • modification for input validations

[102.0.18] - 2022-09-27

Added

  • images input
  • max length for textarea

[102.0.17] - 2022-09-02

Added

  • new template checkbox_vertical for multiselected checkbox

[102.0.16] - 2022-09-02

Added

  • allow to set tempate on frontend block by di.xml

[102.0.15] - 2022-08-04

Fixed

  • fixed Magento 2.4.4 issue with closing the short tag in knockout templates

[102.0.14] - 2022-07-07

Fixed

  • form_key is now passed to Form from frontend

[102.0.13] - 2022-07-07

Added

  • added input=date field to frontend

[102.0.12] - 2022-06-15

Fixed

  • changed web template to render title and description as html

[102.0.11] - 2022-06-14

Fixed

  • template rendering checkbox input when it is boolean type

[102.0.10] - 2022-06-01

Added

  • added css className to the form wrapper element

[102.0.9] - 2022-05-31

Added

  • added form submit failure message

Changed

  • form submit success message is now wysiwyg field

Fixed

  • some typos

[102.0.8] - 2022-05-02

Added

  • checkbox intup block type for multiselect
  • subscribe to newsetter

Changed

  • Removed widget forms from menu. Now its done by CustomFormsBuilder module

[102.0.7] - 2022-04-14

Fixed

  • fix for widgets with non existing forms
  • fix for non validated items in admin menu, for example with too long title

[102.0.5] - 2022-04-01

Added

  • multiselect input

[102.0.4] - 2022-04-01

Added

  • require for checkbox input

[102.0.3]

Changed

  • rewrited widget forms to ui component on frontend
  • changes to be campatible for recaptcha module

Added

  • empty option for select input
  • log error during form submition
  • form input types options (checkbox and radio buttons)

[102.0.2] - 2020-10-15

Added

  • Added compatibility with Magento 2.4.0

[101.0.0] - 2020-04-27

Added

  • init
Versions
Version Stability QA Status Compatibility Released
102.5.7 stable Fail Magento 2.4.7-2.4.9 Details 2026-02-11 13:53:34
102.5.6 stable Not tested Not yet tested Details 2025-06-17 09:41:17
102.5.5 stable Not tested Not yet tested Details 2025-01-22 08:47:21
102.5.4 stable Not tested Not yet tested Details 2025-01-21 14:19:10
102.5.3 stable Not tested Not yet tested Details 2024-11-28 18:25:55
102.5.2 stable Not tested Not yet tested Details 2024-11-17 19:20:54
102.5.1 stable Not tested Not yet tested Details 2024-11-14 10:58:51
102.5.0 stable Not tested Not yet tested Details 2024-11-07 15:39:06
102.4.4 stable Not tested Not yet tested Details 2024-09-26 10:02:44
102.4.3 stable Not tested Not yet tested Details 2024-08-16 13:18:44
102.4.2 stable Not tested Not yet tested Details 2024-05-24 13:54:56
102.4.1 stable Not tested Not yet tested Details 2024-02-26 20:58:33
102.4.0 stable Not tested Not yet tested Details 2023-12-03 19:30:33
102.3.0 stable Not tested Not yet tested Details 2023-06-21 11:19:51
102.2.7 stable Not tested Not yet tested Details 2023-05-02 11:17:38
102.2.6 stable Not tested Not yet tested Details 2023-05-01 21:10:47
102.2.3 stable Not tested Not yet tested Details 2023-03-28 08:26:49
102.2.2 stable Not tested Not yet tested Details 2023-03-12 10:46:46
102.2.1 stable Not tested Not yet tested Details 2023-03-12 09:53:07
102.2.0 stable Not tested Not yet tested Details 2023-03-04 07:50:05
102.1.6 stable Not tested Not yet tested Details 2023-02-27 10:54:24
102.1.5 stable Not tested Not yet tested Details 2022-11-22 14:21:34
102.1.4 stable Not tested Not yet tested Details 2022-11-19 10:36:47
102.1.3 stable Not tested Not yet tested Details 2022-10-27 18:21:30
102.1.2 stable Not tested Not yet tested Details 2022-10-22 20:08:51
102.1.1 stable Not tested Not yet tested Details 2022-10-22 18:07:07
102.1.0 stable Not tested Not yet tested Details 2022-10-22 11:32:59
102.0.23 stable Not tested Not yet tested Details 2022-10-12 16:12:28
102.0.22 stable Not tested Not yet tested Details 2022-10-06 13:05:07
102.0.21 stable Not tested Not yet tested Details 2022-10-05 13:55:36
102.0.19 stable Not tested Not yet tested Details 2022-10-04 12:32:08
102.0.18 stable Not tested Not yet tested Details 2022-09-27 15:03:48
102.0.17 stable Not tested Not yet tested Details 2022-09-02 15:10:31
102.0.16 stable Not tested Not yet tested Details 2022-09-02 09:41:36
102.0.15 stable Not tested Not yet tested Details 2022-08-08 07:14:00
102.0.14 stable Not tested Not yet tested Details 2022-07-28 10:18:29
102.0.13 stable Not tested Not yet tested Details 2022-07-07 14:02:49
102.0.12 stable Not tested Not yet tested Details 2022-06-15 08:41:57
102.0.11 stable Not tested Not yet tested Details 2022-06-14 15:29:49
102.0.10 stable Not tested Not yet tested Details 2022-06-01 11:36:48
102.0.9 stable Not tested Not yet tested Details 2022-05-31 11:01:03
102.0.8 stable Not tested Not yet tested Details 2022-05-02 15:11:55
102.0.7 stable Not tested Not yet tested Details 2022-04-14 10:16:29
102.0.6 stable Not tested Not yet tested Details 2022-04-14 09:41:35
102.0.5 stable Not tested Not yet tested Details 2022-04-01 16:06:40
102.0.4 stable Not tested Not yet tested Details 2022-04-01 14:32:28
102.0.3 stable Not tested Not yet tested Details 2020-11-23 13:52:04
102.0.2 stable Not tested Not yet tested Details 2020-10-15 12:05:15
101.0.1 stable Not tested Not yet tested Details 2020-04-30 23:29:10

Requires 2

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

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
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. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — 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.

Static analysis results
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's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
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 for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
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

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0, AFL-3.0

More from alekseon

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.