Create multiple registering forms for multiple user roles
Created 6 years ago by dilusha100

In my case I have two user roles as Event organizer and Customer. How to make two register forms for both of them?

ryanthompson  —  6 years ago

You can make your own form builder and EXTEND the RegisterFormBuilder or you can simply use the same builder (register one that comes with the system) and set the roles and prefix options (prefix if they're on the same page so they don't collide with each other).

{{ form('register').roles(['event_organizer']).prefix('form_1_').get()|raw }}
ryanthompson  —  6 years ago

Docs need improving here I see.. adding it to the list! ;-)