Skip to content

Instantly share code, notes, and snippets.

@palamar
Last active September 29, 2023 08:05
Show Gist options
  • Save palamar/1aa783432ab7080a7c26fdfa308be42d to your computer and use it in GitHub Desktop.
Save palamar/1aa783432ab7080a7c26fdfa308be42d to your computer and use it in GitHub Desktop.
Magento 2, disable cusomer's attribute in admin
<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="attribute_name">
<settings>
<disabled>true</disabled>
</settings>
</field>
</fieldset>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment