I'm currently working on a user registration form for a site I'm working on. The site requires a lot of information about users up front, and I'd like to break it down into stages.
The first stage requires the user to put in an identifier in the form of an order number. I would then check the order number exists in the system before making them continue to fill in the rest of the fields. I'm not sure how to go about doing this.
What I've managed so far though is to override the underlying User
, RegistrationController
and RegistrationFormType
and render out a customised view with the relevant form fields.
An overview of the process I'd like would be:
- FORM: ask for order number
- process form and check order number exists (if not go back to 1)
- FORM: ask for user information
- process user information and store
- complete