Adding First Name and Last Name to register form
Created 7 years ago by kiltedupEvening,
When using /register
you get Display Name, User Name Email and Password as the fields as they are the ones defined in the Register Form Builder.
What's the 'recommended' approach to adding First Name and Last Name to this form?
Ta
Dave
ryanthompson
—
7 years ago
You can use fields()
method inline - but be sure to include the other fields listen in the RegisterFormBuilder - then just add your own.
Personally.. I think either way is fine. I usually only like to use *, more fields
when those *
fields are OK but in this case the register form builder is a fraction of the fields on the user stream. So I would pry override the class (bind my own to register
).. Just cause it seems more robust.
Did you read this? https://pyrocms.com/help/developer-tools/form-builders/defining-custom-ajax-forms-in-twig