In this post I am going to explain how to add readonly field in ui_component form in Magento 2.

Check the below example code snippet to add readonly field in ui_component.

Here under “<settings>” tag “<disabled>1</disabled>” tag is used to make field readonly.

Thats it. Enjoy Magento 2!!