Form mode control

Component ID

2657670

Component name

Form mode control

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

4062

Component created

Component changed

Component body

In Drupal 8, you can create "form modes" which are for any content entity a different organization of the form (show / hidden, order, form widget, etc.).

Issue is that you can't actually use them except for register / edit profile.

This module allows you :
- To define access to each form mode for the different roles.
- To define for each role, each bundle of each entity which form mode should be taken by default during the creation of the content and the edition. Of course you should grant access before defining this. If a user has multiple roles, the weight of the roles is taken into account (heaviest one).
- To access any of them if you have the permission by adding a simple parameter node/add/article?display=form_mode_machine_name.

See readme for the complete process (or see a Youtube video).

Similar module :
Form mode Manager : this module does not affect the default form but provide new tabs and links for creation / edition with any form modes managing also access permissions. It has therefore more impact on your site admin.

Roadmap for compatibility :
> Share the permissions between the two modules somehow ?
> Disable the display=xxx function on the form manager forms.