In certain cases you will need to create a custom field type to achieve specific input abilities.
Let's create grid input field type for custom set of items.
This file registers module in Magento system. Without this file the module is not visible.
In this file we holds basic description of our module. We need to set the sequence so the module is loaded after the main WebForms extension.
This is used to register new field type.
We define custom block class for our field model.
Here we define our frontend block.
Each field type depends on the main model which should extend the AbstractField class.
Ui classes hold admin ui configurations like result column and extra parameters inputs. Each field type depends on the main model which should extend the AbstractField class.
After the module is ready, please run following console commands:
Feel free to modify this extension, experiment and add required customization to WebForms.
You can download sources here.