This is a quite important demand when you want to use extra information on your pages which the default system does not include.
You can add custom fields with the help of UI Component.
Follow the below steps to create the module ‘PHPCodez_Customfield’
1) Declare a module.
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="PHPCodez_Customfield" setup_version="0.0.1" /> </config>
2) Register a module. Continue reading Custom Fields Multiselect Product Add Edit Pages Magento 2