Support

Account

Home Forums Bug Reports Conditional Logic is not working when having two clones of the same fields

Solving

Conditional Logic is not working when having two clones of the same fields

  • I have a group of fields as a separate field group and use it by using the clone field to import it. The field group includes conditional logic.

    When I include it on one site twice (or more), once by simply cloning it, once by a repeater field, the conditional logic of the normal clone stops working. The logic in the repeater field works just fine.

    The bug only apears on ACF Pro version 5.6.6 and later. 5.6.5 is working just fine.

  • Also ran into this issue. Distilled it down into a simple use case:

    Add a field group that’s inactive with:
    – a true/false field
    – a text field that only shows if the field above is true

    Add a field group that has 2 fields:
    – “Field A” that is a clone of the group above (clone of all fields)
    – “Field B” that is a clone of the group above (clone of all fields)

    When you view the field group that contains the 2 clones, the conditional logic is not scoped to each field. Checking 1 box will trigger both text fields to show.

    Here’s a short video showing the issue:

    https://media.giphy.com/media/3FhtnpnmOyRF8CnncI/giphy.mp4

  • For display do you have “Group” or “Seamless” selected. I think that in order for it to work correctly it must be “Group”

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Conditional Logic is not working when having two clones of the same fields’ is closed to new replies.