I have added a new attribute Pan (pancard number) on the registration form. Validations are also working fine. But if I hit the register tab, I get an error like
de.hybris.platform.servicelayer.exceptions.ModelSavingException: [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@246420ba]:missing values for [pan] in model CustomerModel () to create a new Customer] with root cause de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator$MissingMandatoryAttributesException: [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@246420ba]:missing values for [pan] in model CustomerModel () to create a new Customer
To resolve this error I tried modifier optional = "true" in items.xml doing that above error got resolved but I am not able to store the value for the pan.
So please help me to solve both issues customermodel error and storing value in the database.
You need to extend RegisterForm, RegisterData, RegistrationPageController and CustomerFacade to transfer new field value to model.