Form mode control | Drupal 8 Project


Project Name : Form mode control
Drupal.org project Link : Form mode control
Created : 2016-02-29
Last Update : 2017-01-04
Current Version : 8.x-2.0-rc2
Download Form mode control 8.x-2.0-rc2 Version From Drupal.org : Download

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.

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. Form mode control is simpler in comparison.

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