1

I created a new field using the file system.xml, but I need to add a custom attribute, for example, data-mycustomattr="true".

You can see an example on this image below, the console shows a custom attribute in the field Store Name.

New attribute on Magento 2 admin panel field

How could I do that?

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.