How to Add Custom Tab in Customer Form in Magento 2

In this editorial, we will learn how to add custom tab in admin customer form in magento 2.

The customer form mainly contains “Customer View”, “Account Information”, “Whishlist” and “Orders” sections. To add a custom tab to the customer form in Magento 2, follow the below steps:

Create customer_index_edit.xml file at app/code/Vendor_Name/Module_Name/view/adminhtml/layout/customer_index_edit.xml

<?xml version="1.0"?>
<page xmlns:xsi="" layout="admin-2columns-left"
        <referenceContainer name="content">
            <uiComponent name="customer_form"/>

Create customer_form.xml file at app/code/Vendor_Name/Module_Name/view/adminhtml/ui_component/customer_form.xml

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="amit-demo-tab">
            <label translate="true">Demo Tab</label>
                <class name="customer-demo-form">true</class>

I hope this article on adding a custom tab to
the Magento 2 customer form in admin is simple to grasp.

If you still have any issue feel free to ask and let me know your views to make the better. Share this solution with your other Magento buddies via social media.

Thanks for reading.

Leave a Reply

Your email address will not be published. Required fields are marked *