getData('form'); $fieldset = $form ? $form->getElement('information_fieldset') : null; if (!$fieldset || $form->getElement('customer_ids')) { return; } $html = $this->layout->createBlock(CustomerSelect::class) ->setTemplate('Esun_CustomerCoupon::form/customer-select.phtml') ->toHtml(); $fieldset->addField( 'customer_ids', 'note', [ 'label' => __('Assigned Customers'), 'text' => $html, 'note' => __('When customers are selected, one unique coupon is generated for each customer.'), ], 'dash' ); } }