dilusha100 - 2 months ago

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

ryanthompson - 2 months 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 - 2 months ago

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