Hiding the field in the "Manage Form display" does not work

Created on 18 March 2025, 21 days ago

Hiding the field in the "Manage Form Display" editing interface does not work. Dragging the field to the hidden section and saving the form is useless.

🐛 Bug report
Status

Active

Version

10.4

Component

field_layout.module

Created by

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

Comments & Activities

  • Issue created by @tetatu
  • Is this with the experimental "Field Layout" module? In that case be aware of 📌 Inform users that Field Layout is deprecated Active .

    Please add clear steps to reproduce in any case.

  • I looked through the list to see which component this could be, this is the core state, so the separate Field Layout module is not enabled, so this is the default state after installation.
    I attached the screenshot earlier in case it helps.

  • I can't reproduce this.

    I did the following:

    1. I installed a new Drupal site from the 11.x branch, which is at commit 501bbdbe21c257fc
    2. I browsed to /admin/structure/types/manage/article/form-display.
    3. I moved field Image to the Disabled section and saved the form.
    4. Image remains in the disabled section.
    5. I checked at /node/add/article that Image is in fact disabled.

    Because of that, we need additional reproduction steps from you and perhaps error logging (including browser console errors, if any), to proceed here.

  • But I specified Drupal 10.4, that's where the problem occurs. I haven't tried Drupal 11, as I don't use that.

  • Thanks for that update. I repeated the steps in I outlined in comment #4, in Drupal 10.4.4, which as I write this is the latest release, and I could not reproduce the bug.

  • I've taken note. I'm at a loss as to how to prove it.

  • Can you confirm that there are no browser console errors or Drupal log errors whatsoever?

  • I tried it in Firefox and Chrome, it didn't work.

    I just checked the Drupal error log, there is no entry.
    I checked the Browser error messages, there is 1 entry:

    Uncaught TypeError: rowHandlers[data.rowHandler] is not a constructor

  • It would be possible to do something with that if you disable JavaScript aggregation, rebuild caches, then get that error with its stack trace for us.

    Additionally, any information about what makes the affected Drupal site different from a newly-installed Drupal site will tend to help lead toward a resolution. Otherwise, we can only guess.

  • Let's put this bug report aside then, as soon as I get a chance I'll install a fresh Drupal and if there's still an error then it will bring me closer to solving it.

  • I installed a fresh Drupal 10 and there is no problem, hiding the fields work.

  • 🇨🇭Switzerland 4aficiona2

    I have the same problem. Tried to hide fields for "Full content" display mode. After saving I get the message "Status message
    Your settings have been saved." but the fields are still listed in the "Content" section instead of the "Disabled" section.

    I use/run Drupal 11.1.5, once based/built on a Drupal CMS RC2 installation. Then always updated through Composer.

    I also use Display Suite with the "1 col layout" and Gin as a admin theme.

    I tried I with using a different admin theme (Claro, but the the saving still would not work) and switched Display Suite layouts but no difference here too.

Production build 0.71.5 2024