cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B2C Storefront: adding a custom field to registration page

jose_rangel
Participant
1,166

For training purpose I'm trying to add a custom field (phoneNumber) to the registration page of the B2C. After doing the tutorial trails and going through the several related questions in this community I'm still having difficulties understandting the logic behind this.

I extended the RegisterData bean in facades and Customer type in core to add a phoneNumber attribute and this works as expected. But, I'm confused about the next steps for this customization. I guess I have to create a CustomRegisterForm to add the phoneNumber field and create a CustomLoginPageController to implement the method that transfer the data from CustomRegisterForm to RegisterData using custom populators for this.

Any help would be really appreciated! Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Great job 😄

You will need a form and validator for this form.

Go to the storefront and to the registration and login page, put your validator and form instead of the registerForm. Make sure you save the number in the database as well

you can check this old answer

https://answers.sap.com/questions/12759091/view.html