Select form mode

Created on 11 February 2015, about 10 years ago
Updated 3 August 2023, over 1 year ago

Problem/Motivation

It seems currently, the default form is offered.
Drupal 8 has this wonderful concept for form modes.

Proposed resolution

Allow selection of a form mode in the block settings.

Thus, field widgets and visibility can be properly configured, specifically for the block.

Remaining tasks

User interface changes

API changes

Feature request
Status

Needs work

Version

1.0

Component

User interface

Created by

🇨🇭Switzerland miro_dietiker Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MariaDB 10.3.22
    last update over 1 year ago
    4 fail
  • @unstatu opened merge request.
  • 🇪🇸Spain unstatu

    Hello all,

    I have approached the problem in a completely different way. Sorry for adding a divergence here. If you want, I can create a separate issue for this even if the objective is the same.

    I agree with the latest comment of Berdir when he stated that this issue is getting too complicated. Maybe I am missing something but I think that the approach followed in this MR https://git.drupalcode.org/project/entityform_block/-/merge_requests/3 is much easier.

    This is a PoC that needs more work:

    - Only allow the users to select the form modes that belong to the selected entity type (probably the Form mode field should be loaded via AJAX)
    - To test it

    Also, there is something that I don't understand about the block context and the edit/delete permissions. I don't know why we have to care about this in this issue if we are not caring about it (AFAIK) when displaying the default form mode. Is not Drupal core checking the permissions when showing the form? Even if it's not the default one?

Production build 0.71.5 2024