Not working on Layout Builder

Created on 9 January 2020, about 5 years ago
Updated 13 July 2023, over 1 year ago

I added conditional fields to a custom block content type and they're working pretty well when creating/editing a block from the Block Library, however the conditions do not kick in when using Layout Builder to create/edit the block.

🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇦🇺Australia yusufhm NSW, Australia

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • 🇩🇪Germany droprocker

    This is still not working with Layout Builder. Does anyone have a solution, yet?

  • 🇮🇳India manojapare

    Have re-rolled a new patch to make conditional fields (v4.0.0-alpha5) work with layout builder. Thanks for @yusufhm for the patch #11, which helped me.

  • Issue was unassigned.
  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Thanks for the report and all the efforts in here. +1

    Please reroll the patch against latest dev to be better trackable and implementable in a new release. Also, missing Layout Builder support is not a bug, it is a feature request. This is a huge step forward and all your work in here is much appreciated.

    So please reroll against latest dev and let's get some reviews on it so that I can review and commit it asap.

  • 🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

    I am blocked by this.

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Descriptions of the Priority and Status values can be found in the Drupal project issues documentation.

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    @JSchref: please do not change the issu summary on top of this thread. It is important introduction text for the underlying issue and is mostly written by the original reporer and/or changed by maintainers for tracking of issues, changes, and later backtrace of new issues.

  • 🇮🇹Italy finex

    Hi, should the patch also works with "Layout Builder iFrame Modal"? I've tested #19 and it seems not. Thank you.

  • First commit to issue fork.
  • Merge request !55Resolve #3105263 "Support for layout" → (Open) created by klaasvw
  • Status changed to Needs review 6 months ago
  • 🇧🇪Belgium klaasvw

    Hi everyone,

    First of all thanks for all the hard work done so far!

    I've created an MR with the following changes:

    • Re-roll of #19 again the latest 4.x dev
    • Support for layout_builder_browser

    I haven't been able to test this with layout_builder_iframe_modal.

    Patch attached.

  • Pipeline finished with Failed
    6 months ago
    Total: 891s
    #280110
  • 🇨🇴Colombia pablomoto1000

    Hi guys,

    I was having issues trying to use patches for the Layout Builder issue, however thanks to @klaasvw I was able to add the changes to the stable release conditional_fields 4.0.0-alpha5.

    Here's the patch in case anyone needs it, dev branch is evolving to quickly and the fix isn't there yet, so please use 4.0.0-alpha5 for this.

    Thanks to supporters and maintainers, whish you long life to keep helping the community!

  • 🇺🇸United States anilu@ Houston, TX

    Patch needs reroll

  • 🇬🇧United Kingdom jpontet

    Hi all,
    Re #29, I've tried 4.0.0-alpha5 & 4.0.0-alpha6 but I find that my conditions still don't work in Layout Builder.
    Re #28, this patch doesn't apply to the latest version of 4.0@dev, which is 4.0.0-alpha6 (at this time). I also tried applying patch #29 to 4.0.0-alpha6 (just in case I miss understood the comment) but that doesn't apply either.

    Can anyone confirm if they have this working? If so which version please. Perhaps it depends on the conditions you are using.

  • 🇺🇸United States ajetiv1

    Patch #29 does not seem to work for 4.0.0-alpha6 for me either. Cannot upgrade to 4.0.0-alpha6 to make it Drupal 11 ready

  • 🇺🇦Ukraine strayder

    [DELETED]

  • 🇺🇦Ukraine strayder

    Sorry for the confusion caused by the previous comments; they are outdated and no longer relevant. Here is the updated patch that you can use.

Production build 0.71.5 2024