Redeem Now
Read More
Read now
Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    How to create Tab with form fields in admin customer edit section Magento 2

    Here we will learn, How to add Tab with form fields in Admin custom edit section in Magento 2

    1. Create a file Webkul/CustomerEdit/view/adminhtml/layout/customer_index_edit.xml.

    2. Now create the Tabs.php in Webkul/CustomerEdit/Block/Adminhtml/Customer/Edit as we defined in customer_index_edit.xml file

    Now reload the page and Tab will be display.

    . . .

    Leave a Comment

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


  • faisal Siddiqui
    It’s very useful, thanks for the post.
  • pawan
    I fallowed and form tab and input field showing fine but it not saving.When i click on save and continue edit i am unable to get data
    • Mahesh Singh (Moderator)
      Pawan, Make sure the field, you have added, has ‘data-form-part’ => ‘customer_form’ attribute.
  • Bhagyashri
    Hello Support,

    Nice article thanks for sharing information.

    I need to add customer edit section after wishlist call custom tab in that call uicomponent form facing issue.

    It is very urgent task for me. Can you guide me for the same.

    • Mahesh Singh (Moderator)
      Bhagyashri, Do you want to add a tab in customer edit section via ui-component? So you can add fields as ui-form.
  • Zilvinas
    Line 136
    Undefined variable: rowcom
    • Mahesh Singh (Moderator)
      Hi @Zilvinas $rowcom can be replaced by you value. For eg: you can load your custom model data,
      and assign that variable to it, so i will show your saved value of this field.
  • Jagdish Ram
    Hi is there any code available for magneto 1 like you have used in your code
  • Rachi Patel
    How to submit this form field ?
    • Rahul Dambare
      Did you find your answer ?? and where to set $rowcom ?
  • milan patel
    add form field on new tab in customer edit section on admin side
  • Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again