I want to display preview/thumbnail of the image as per mention in image when i upload image in admin panel. How it is possible without ui_component?
Please help me.
$image11 = $fieldset->addField(
'image',
'image',
[
'name' => 'image',
'label' => __('Background Image'),
'title' => __('Background Image'),
'tabindex' => 1,
'onchange' => 'imagechange(this)',
],'text'
);
I used dependency in this field..when I select background type image, then background image field will be show . But 'background image' label is not hide because of 'after_element_html'. How can i hide 'Background Image' label use with the use of 'after_element_html'