Auto populate form fields base on selected

In sales Order when we select a customer then in address and contacts portion data is auto populated according to selected customer
I want to achieve the same functionality kindly help me how to do this ?
And how could I change the format of address display ? for example if I want to display the city, street and state in one line not on separate lines.

Please check this documentation on Custom Fields on how to set options. You should be able to configure address format using Address Template.

Thanks!

Thanks a lot dear :heart_eyes: