I am using Conditional fields 4.0.0-alpha5 with Drupal 10.2.3. I have a Paragraph type that has a conditional field on it. Originally, the conditional field did not work on the paragraph when adding/editing, so I added the patch from this issue: https://www.drupal.org/project/conditional_fields/issues/2902164. That successfully made the conditional field work on the Paragraph, however, now I am using Layout Paragraphs, which makes it so that the Paragraph add/edit form displays in a modal. As soon as that happens, the conditional field no longer works.

Steps To Reproduce

  • Install and Enable the Paragraphs module and Layout Paragraphs module
  • Create a Paragraph type with some conditional fields
  • Make sure the Paragraph type's Form Display and view display is set to Layout Paragraphs
  • Add the Paragraph type to a content type
  • Create a node of that content type and add a Paragraph using the Paragraph type created above
  • The add screen should show up in a modal window. Notice that the conditional fields rule you setup is not working
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SoCalErich created an issue. See original summary.

crmn’s picture

erichhaemmerle’s picture

I have the same exact issue.

nicxvan’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #3105263: Support for Layout Builder.

Please move any comments over there or reopen if I am mistaken.

megadesk3000’s picture

Maybe i am wrong, but the duplicate issue is about Layout Builder and not Layout Paragraphs.
I tried the patch from there, but inside layout paragraphs the conditionals still do not work.

megadesk3000’s picture

Status: Closed (duplicate) » Active

das-peter made their first commit to this issue’s fork.

chrisla’s picture

Status: Active » Closed (duplicate)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

nicxvan’s picture

Status: Closed (duplicate) » Active

Actually this one is older usually we close the newer duplicate.