I added a custom field to attribute add/edit form using these instructions: https://magento.stackexchange.com/a/238731 and Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit

So I created an extension with that code and, I show the new field in the product attribute add/edit form, but the value not getting saved.

So the part that's missing is how to save the value to the DB. How can I accomplish that?

Thank you

1 Answer 1


Please confirm first with table "sample_attribute", attribute has created or not.

If not then kindly refer below link :


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.