How To

Magento 2: Hide Custom Customer Attribute in Customer Account Information Section from Admin Panel

Hello Magento Friends,

I am back with another Magento 2 Tutorial. Today we will discuss Magento 2: Hide Custom Customer Attribute in Customer Account Information Section from Admin Panel.

Magento 2 default provides customer attributes to receive information from customers. When the admin needs additional information, custom attributes can be created. These attributes are visible at many places, one of them is the customer account information section in the admin panel. When there is no more requirement of any particular custom attribute, the admin can hide it from the account information tab in the Magento 2 admin panel.

If the Magento 2 admin wants to hide custom customer attributes in the customer account information section, follow the below steps.

Steps to Hide Custom Customer Attribute in Customer Account Information Section from Admin Panel in Magento 2:

Step 1: Create customer_form.xml in the below path 

app\code\Vendor\Extension\view\base\ui_component\

And add the below code

<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
     <fieldset name="customer">
     <field name="your_attribute_name">
     <settings>
         <visible>false</visible>
     </settings>
     </field>
 </fieldset>
</form>

Conclusion:

This way admin can Hide Custom Customer Attribute in Customer Account Information Section from Admin Panel. Simple, isn’t it? If you come across any issues, comment on your queries, and I will help you solve them. Share the article with your fellow Magento colleagues and stay tuned with us for more!

Happy Coding!

Click to rate this post!
[Total: 7 Average: 5]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

View Comments

  • Hi Magecomp,
    how we can get the configurable product id through ajax call from the controller in the magento 2
    can you write the blog from this question
    Thanks

Recent Posts

How to Integrate ChatGPT with Laravel Application?

In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…

1 day ago

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

4 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

4 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

4 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

5 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

1 week ago