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.

Comments

anpolimus created an issue. See original summary.

anpolimus’s picture

Assigned: Unassigned » anpolimus
jcandan’s picture

Title: Create form view mode for each registration type » Specify form mode with role registration path
Issue summary: View changes

Modified issue summary to conform to issue summary template. Added notes about possible UI flow.

eglaw’s picture

Status: Active » Needs review
StatusFileSize
new8.07 KB

I'll make a patch soon ...

eglaw’s picture

eglaw’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
eglaw’s picture

StatusFileSize
new7.52 KB

There you go ...
Tested with Drupal 8.6.3 + Multiple Registration 8.x-2.5

ysamoylenko’s picture

Status: Needs review » Reviewed & tested by the community

I've reviewed your patch and fixed some coding standards issues.
Functionality will be added to the new module release.
Great work, thank you.

  • ysamoylenko committed 03a8324 on 8.x-2.x authored by eglaw
    Issue #2919244 by eglaw, anpolimus, jcandan, ysamoylenko: Specify form...
ysamoylenko’s picture

Status: Reviewed & tested by the community » Fixed

The patch was committed. Thanks for all for participating, especially eglaw.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.