AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
835 stars 170 forks source link

Conditional logic doesnt work with clones #559

Open JelledFro opened 2 years ago

JelledFro commented 2 years ago

If the clone is seamless there is no toggle for conditional logic and if the clone is a group and you make it conditional the field disappears completely from graphql.

mattgrshaw commented 2 years ago

Hi @JelledFro,

Not having conditional logic options for a field marked as seamless is expected, since the seamless mode essentially replaces the clone field with the fields that it's cloning.

I just tested with the clone field set up as a group and the conditional logic was working fine for me, so I suspect there might be an issue with your GraphQL integration. Are you using a plugin for that?

adampatterson commented 3 months ago

Is there a reason a seamless clone doesn't have conditionals?

If it's expected it would be nice to remove the conditional or display some text letting people know it's not broken.

image

dealer-solutions-gene commented 3 months ago

I'm here because I've just hit the same problem, 'display' => 'group' vs 'display' => 'seamless' when there's conditional logic in play. Building config programmatically with acf_add_local_field_group() function, the inclusion of the clone is conditional in what I'm building (per page header/footer override).