Required state does not work on paragraph fields

Created on 12 February 2025, about 2 months ago

Problem

Paragraph fields that have required condition only work if configured strictly with the following options via form display:

  • Selected default paragraph (thus, condition will only work for a single value field)
  • Edit form in open state

Steps to reproduce

  1. Create paragraph type with 3 fields (one list, one textarea, one node entity reference). All fields are optional.
  2. Configure to change the required state for textarea and node entity reference field based on the value of the list field.
  3. Create a node type, add the created paragraph type as an paragraph reference field and configure the created paragraph type as an allowed option.
  4. Configure form display for paragraph field with edit form in open state and default paragraph as none.
  5. Add new node using created node type and attempt to add the paragraph.
  6. Changing the value using the list field will not trigger required state for other paragraph fields.
  7. Same issue is applied when editing existing node that already have date for paragraph fields.
  8. If configure the form display with edit form in closed state and default paragraph as created paragraph, the required state condition will work
🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024