Search by

skeeks / cms-module-form2

skeeks-semenov

Form designer for SkeekS CMS

Package info

github.com/skeeks-cms/cms-module-form2

Homepage

Issues

Wiki

Type:yii2-extension

pkg:composer/skeeks/cms-module-form2

Statistics

Installs: 8 554

Dependents: 3

Suggesters: 1

Stars: 0

3.0.2.13 2026-11-05 19:55 UTC

README

The module provides an opportunity to collect a variety of forms through the admin panel. Manage elemntov order forms, and views. Configure whom to notify.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-module-form2 "*"

or add

"skeeks/cms-module-form2": "*"

Configuration app

'components' =>
[
    'i18n' => [
        'translations' =>
        [
            'skeeks/form2/app' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/modules/cms/form2/messages',
                'fileMap' => [
                    'skeeks/form2/app' => 'app.php',
                ],
            ]
        ]
    ],
],
'modules' =>
[
    'form2' => [
        'class'         => '\skeeks\modules\cms\form2\Module',
    ]
]
sx.EventManager.on("ajaxFormSuccessSubmited", function(e, data) {
    //Успешно отправлена любая форма
    //ym(67855000,'reachGoal','any-form');
    
    if (data.form.jForm.data('form_code') == 'register') {
        //Отправлена конкретная форма (регистрация)
        ym(67855000,'reachGoal','register');
    }
    
    
    if (data.form.jForm.data('form_code') == 'test') {
        //Отправлена конкретная форма (с кодом test)
    }
});

CRM: the channel of a form's deals

A submission makes a deal in the CRM of skeeks/cms (Form2FormSend::ensureCmsLead()). The form setting «Канал сделки» (Form2Form.lead_source_type, migration m261105_100000) gives these deals the channel «Визит в салон / офис» (CmsLead::SOURCE_VISIT) instead of «Форма»: a visitor questionnaire by a QR code in a showroom. A submission finds its deal by every channel of a form (Form2FormSend::leadSourceTypes()). The marks and the first page of the visit (seo->utms) go to the deal, where the core fills «Откуда узнали». Tests: tests/form2-lead-contract.php, FORM2_VISIT_TEST=local php tests/form2-visit-channel-stand.php.

Links

skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com