Showing results for 
Search instead for 
Did you mean: 

How to change existing adminhtml form

How to change existing adminhtml form

I am currently having a deeper look into M2 development. I am trying to modify the adminhtml customer edit address form. I was already able to add new fields to the form by using a setup script.


However, I was not able to find any information how can I influence how the new fields are rendered (for example the sort order). The new fields appear at the top of the form, but I want them to be the last ones in the form. Additionally if that is possible I want to seperate some fields from the rest of the address, for example put "Company" together with my new fields in an own HTML fieldset.


in /vendor/magento/module-customer/view/adminhtml/layout/customer_index_edit.xml I was able to find some definitions for the personal info, however there is no customer_edit_address.xml as I would expect it. Also I found /vendor/magento/module-customer/view/base/ui_component/customer_form.xml which seems to make the definitions for the address form, how would I extend or change this with my custom module?


Any help is appreciated! Thanks and best regards!