Conditional fields do not work with Paragraphs that are in a modal.

Created on 7 June 2024, 5 months ago

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 πŸ› Controlled-by fields inside a Paragraph don't work Needs work . 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
πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States socalerich

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

Comments & Activities

Production build 0.71.5 2024