I have created one "Customer address" type of attribute name "Suburb", It successfully created.
It shows on Checkout, Customer create(admin) and Create New Order address(Admin) section, While It works fine with checkout as well as create customer but not working with Create new order.
Here install script:
$customerSetup = $this->customerSetupFactory->create(['setup' => $setup]); $customerSetup->addAttribute('customer_address', 'suburb', [ 'label' => 'Suburb', 'input' => 'text', 'type' => 'varchar', 'source' => '', 'required' => true, 'position' => 70, 'visible' => true, 'system' => false, 'is_used_in_grid' => false, 'is_visible_in_grid' => false, 'is_filterable_in_grid' => false, 'is_searchable_in_grid' => false, 'backend' => '' ]); $attribute = $customerSetup->getEavConfig()->getAttribute('customer_address', 'suburb') ->addData(['used_in_forms' => [ 'adminhtml_customer_address', 'customer_address_edit', 'customer_register_address' ]]); $attribute->save();
But when I tried to Submit Order It shows me error 'Suburb` is a required value. It's shown that filled value of suburb is not being saved too.