Skip to content

[5.x]: Conditional fields don't work for entry types with multiple tabs #16860

@JayBox325

Description

@JayBox325

What happened?

Description

I have got a component that has 3 columns like this:

Image

So I need to let the author configure the three different content feeds where the options are:

  • Choose if you want it to be automated or manual
  • If MANUAL, you are presented with the option to choose the posts to display
  • If AUTOMATED, you are presented with the choices to configure what posts to fetch and display.

However, the conditional settings for these fields based on the Feed Type field are not making any changes based on my choices, you'll see in the screenshot below the red ones should be for automated and the green fields should appear for manual feeds:

Image

But, even when I chose an option, it never updates and there's nothing in the console to let me know it's even tried and thrown an error. Notice in the screenshot below, the type is automated, yet I'm just being shown the manual posts field.

Image

Steps to reproduce

  1. Create an entry type with multiple tabs
  2. Add conditional fields within these tabs, using the same field in each so it's duplicated the same field type
  3. Try to use it and see how the conditional field switching fails.

Craft CMS version

5.6.11

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions