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
Issue fork conditional_fields-3453294
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
Comment #2
crmn commentedComment #3
erichhaemmerle commentedI have the same exact issue.
Comment #4
nicxvan commentedThis is a duplicate of #3105263: Support for Layout Builder.
Please move any comments over there or reopen if I am mistaken.
Comment #5
megadesk3000 commentedMaybe 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.
Comment #6
megadesk3000 commentedComment #8
chrisla commentedduplicate of https://www.drupal.org/project/conditional_fields/issues/3542201
Comment #10
nicxvan commentedActually this one is older usually we close the newer duplicate.