I have created address_nationality
attribute using script
$customerSetup -> addAttribute('customer_address',
'address_nationality',
[
'label' => 'Nationality',
'system' => 0,
'user_defined' => true,
'position' => 110,
'sort_order' =>110,
'visible' => true,
'default_value' => '',
'note' => '',
'type' => 'varchar',
'input' => 'text',
]
);
$customerSetup -> getEavConfig() -> getAttribute('customer_address', 'address_nationality')->setData('is_user_defined',1)->setData('default_value','')-> setData('used_in_forms', ['adminhtml_customer_address', 'customer_register_address', 'customer_address_edit']) -> save();
In address book I am trying to save value of address_nationality
but it is not getting saved.