Problem/Motivation
There is no way to specify a form mode to use for the role registration form.
This module uses the Default user form mode by default. You can activate the Register form mode in admin/config/people/accounts/form-display. Modify a field widget in that form display. The modification is seen in the role registration form. Create and activate a custom form mode. There is no way to tell multiple_registrations to use that form mode. Changes to it's form display are not used in the role registration.
Proposed resolution
Since this module already uses the both the Default and the Register form modes, it should be relatively simple to modify that to be configured to some other form mode. A simple solution might be to add a select field with each of the active form modes (admin/config/people/multiple_registration/<role>/add).
User interface changes
Add select field for active form modes in the role registration add/edit form
Data model changes
A schema model change is needed to store the form mode setting.
Remaining tasks
- Add storage mechanism for specified form mode per role registration form
- Supply select field to choose from active form modes
- Apply form mode to role registration form
Original report by [username]
Hi.
Thank you for your great module.
With help of your module I've implemented 3 different registration forms for the each role.
Each form has different form view configuration (I've grouped fields with help of field_group module).
My problem is:
At first registration form I want to see website field at Global Information fieldgroup and at second registration form I need this field to be displayed at another fieldgroup.
Since, your module is gathering fields from the default form view, I have to create 2 different fields.
If we will have different display form view for the each registration form a lot of similar issues will gone.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | added-form-mode-feature--2919244-5.patch | 7.52 KB | eglaw |
Comments
Comment #2
anpolimusComment #3
jcandan commentedModified issue summary to conform to issue summary template. Added notes about possible UI flow.
Comment #4
eglawI'll make a patch soon ...
Comment #5
eglawComment #6
eglawComment #7
eglawThere you go ...
Tested with Drupal 8.6.3 + Multiple Registration 8.x-2.5
Comment #8
ysamoylenko commentedI've reviewed your patch and fixed some coding standards issues.
Functionality will be added to the new module release.
Great work, thank you.
Comment #10
ysamoylenko commentedThe patch was committed. Thanks for all for participating, especially eglaw.