Having two different section depending the boolean

Created on 18 July 2023, almost 2 years ago
Updated 19 July 2023, almost 2 years ago

Problem/Motivation

I would like to know if it's possible to request this feature:
-have a conditional field boolean like it exist
-having two different layout switching on this condition

Example

Having layout one col if a field is checked
Having layout two col if a field is unchecked

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Miscellaneous

Created by

πŸ‡«πŸ‡·France musa.thomas France πŸ‡«πŸ‡·

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

Comments & Activities

  • Issue created by @musa.thomas
  • Status changed to Closed: won't fix almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

    Hi, @Musa.thomas,
    Unfortunately, this module can't support that feature without making some huge changes. The UX would be tricky too, since the true and false layouts would need their own configuration forms. I'm not sure what that editing experience would end up looking like.

    The best you can do using this module is to add two boolean layouts. On the first you would leave the false section empty and on the second you would leave the true section empty.

    I'd like to see Condition plugins integrated Layout Builder and used for Section visibility. There's currently work for using Conditions for block visibility in Layout Builder ( ✨ Add visibility control conditions to blocks within Layout Builder Needs work ), but nothing about Section visibility to my knowledge. Using Sections and Conditions together would be a good solution for your problem as well. Maybe some day that will be an option!

Production build 0.71.5 2024