Download the PHP package mateuszbieniek/ezplatform-form-builder-multi-step-forms without Composer
On this page you can find all versions of the php package mateuszbieniek/ezplatform-form-builder-multi-step-forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mateuszbieniek/ezplatform-form-builder-multi-step-forms
More information about mateuszbieniek/ezplatform-form-builder-multi-step-forms
Files in mateuszbieniek/ezplatform-form-builder-multi-step-forms
Package ezplatform-form-builder-multi-step-forms
Short Description Adds feature to create multi-step forms in eZ Platform 2.5 Form Builder
License MIT
Informations about the package ezplatform-form-builder-multi-step-forms
ezplatform-form-builder-multi-step-forms
Description
The bundle provides a "step" field for the Form Builder in eZ Platform EE which makes Form "Multi-Step".
Usage
This bundle provides a default (and very basic) template that uses Bootstrap 4 to create a carousel which is used for
step transitions, but you can use any solution you prefer. To do so, you will have to override the default template
(EzPlatformFormBuilderMultiStepFormsBundle::form_steps.html.twig
).
If Step Field is not the very first field used in the Form, fields before first Step Field will be rendered below the carousel (in the default template). If there is no Step Field inside Form it will be rendered normally. Step Field has couple of attributes:
step_class
- the default template will add this CSS class to the step <div>
tag.
next_label
- if this field is not empty, the default template will render the "next step" button with the defined
label.
back_label
- if this field is not empty, the default template will render the "previous step" button with the defined
label.
custom_template
- if this field is not empty, the default template will use this custom twig file for this step
template ({% include step.step_field.vars.attr["custom_template"] with { 'step': step } %}
)
It is up to you to add any additional features in javascript (for example: disable "next" button, until all fields in steps are filled).
Installation
1. Enable EzPlatformFormBuilderMultiStepFormsBundle
Edit app/AppKernel.php
, and add
at the end of the $bundles
array.
2. Install mateuszbieniek/ezplatform-form-builder-multi-step-forms
All versions of ezplatform-form-builder-multi-step-forms with dependencies
ezsystems/ezpublish-kernel Version ^7.5
ezsystems/ezplatform-form-builder Version ^1.2