Skip to content

Add events to add fields in tab form #405

Closed
@ihor-sviziev

Description

@ihor-sviziev

For now we have a lot places, that contains code like this:

/** @var \Magento\Data\Form $form */
$form = $this->_formFactory->create();
$fieldset = $form->addFieldset('tiered_price', array('legend' => __('Tier Pricing')));

$fieldset->addField('default_price', 'label', array(
    'label' => __('Default Price'),
    'title' => __('Default Price'),
    'name'  => 'default_price',
    'bold'  => true,
    'value' => $product->getPrice()
));

But we haven't events to add additional fields.

Example:

$fieldset = $form->addFieldset('cache_enable', array(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions