Multi step Survey - Alekseon/magento2-widget-forms GitHub Wiki
To create form go to Content -> Elements -> Manage Custom Forms, and Add New Form.
- Title - set form title
- Can use as frontend widget - set to yes, to use it later as widget on frontend.
- Group Fields In - set to Tabs, to group survey fields in separated tabs in admin view. (optional)
|
In Form Fields tab, create 3 tabs (steps), for example Personal Info, Question, Summary
|
Add fields in Personal Info tab:
- Name - set it as Text Field and required
- Email - set it as Text Field and required
|
Add fields in Questions tab:
- How do You rate our products? - set it as Rating and required (we will set options in next step)
- How Did You find our website? - set it as Dropdown and required (we will set options in next step)
- Is this first time You have visited the website? - set it as Dropdown and required
|
Add fields in Summary tab:
- Any additional comments - set it as Text Area
- Agree to Terms and Conditions - set it as Yes/No and required
|
Read more about form input types here.
Lets add options to Dropdown fields. Options can be added only to seved fields, click Save and Continue button form before.
We have 2 fields with dropdown options:
For this field we want define custom options. Go to field Advanced Settings, there You can define options in Manage Options section.
|
For this field we want to have options Yes and No. You can simply select Yes/No as Option Source on this field.
|