Control field inside paragraph

Created on 23 August 2024, 6 months ago
Updated 24 August 2024, 6 months ago

Problem/Motivation

Not able to control the field inside the paragraph type with a field of the content type

Steps to reproduce

1)create a paragraph type with two fields . one is text(name) and other is number(age).
2)create a content type customer add two filled in it one is title as a text and other is select drop down with two options( major and minor).
3)go to manage dependency and try to control age field hide/show with the option selected as major or minor.
4)No such option

✨ Feature request
Status

Postponed: needs info

Version

4.0

Component

Code

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

Comments & Activities

  • Issue created by @nitish kumar pandey
  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡«πŸ‡·France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Thanks for the report. Can you please rephrase your steps to reproduce? It is a little bit confujsing to read and understand. Especially step 2 is hard to read and what you mean by "create a content type customer add two filled in it one is title as a text and other is select drop down with two options( major and minor)." Guessing: Is one of these 2 fields in the new content type the paragraph as a reference? And you want CF to "know" about the age field, which is part of the referenced paragraph but it is not a direct field in the type you are building your CF condition? Is it that what you mean?

  • πŸ‡ΊπŸ‡ΈUnited States markie Albuquerque, NM

    Here is my use case:

    I have a paragraph we can call "Container" with the following fields:

    • Style: Image, Icon
    • Cards: Entity Reference to a Card Paragraph

    The "Card" Paragraphs has the following fields:

    • Image: Image File
    • Icon: Preset list of possible icons
    • Text: Text

    I want the container to control whether the Site Builder can use Images or a preset list of icons. I want this consistent for ALL cards inside a container which is why the style is in the container paragraph instead of the card itself. So I would Hide the icon field if the style is Image and vice versa for the Image field. I can select the "parent_field_name", but can not specify the name, and most importantly, can not trigger based on the value of the specified field.

    I am trying to work this out programmatically for the time being but thought writing out a use case would be helpful for the module.

    HTH

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    This is a duplicate of πŸ› Controlled-by fields inside a Paragraph don't work Needs work

  • πŸ‡ΊπŸ‡ΈUnited States nicxvan

    Please reopen it if I am mistaken.

Production build 0.71.5 2024