So, as the title says, i've added some new attributes in my customer entity, one of which is a boolean, as you can see from the code in setup/InstallData.php
$customerSetup->addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'azienda', [
'type' => 'int',
'label' => 'Azienda',
'input' => 'boolean',
'source' => '',
'required' => false,
'visible' => true,
'position' => 333,
'system' => false,
'backend' => ''
]);
and i've also created the frontend layout override for "customer_account_create"
, everything works fine, other text fields i've added are saved correctly but i can't get it to save in my database this "azienda"
attribute which is a boolean. I've tried checkboxes, radiobuttons, textfields with "yes", "true" and "1", whatever i put in that field the boolean attribute will be always unchecked (false) after registration.
Hope i've explained my issue well enough, thank you for your help :)