How to set value of custom field on attribute edit form

Viewed 34

I add new column to eav_attribute table and set field in attribute edit page by Plugin.
But after adding value to this field it saved in db and not visible on attribute edit page after reloading. enter image description here

Below code of plugin

<?php

namespace Practice\ProductAttributeHints\Plugin\Block\Adminhtml\Product\Attribute\Edit\Tab;

use Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front as BaseFront;
use Closure;

class Front
{
    public function aroundGetFormHtml(
        BaseFront $subject,
        Closure $proceed
    ): string
    {
        $form = $subject->getForm();
        $fieldset = $form->getElement('front_fieldset');
        if (isset($fieldset)) {
            $fieldset->addField(
                'hint',
                'text',
                [
                    'name' => 'hint',
                    'label' => __('Note for Attribute'),
                    'title' => __('Note for Attribute'),
                    'value' => **VALUE**
                ]
            );
        }
        return $proceed();
    }
}

What I need to write instead VALUE
Help, please

1 Answers
Related