Support

Account

Home Forums Bug Reports Conditional logic in nested repeaters

Conditional logic in nested repeaters

  • Stemming from this post: http://support.advancedcustomfields.com/forums/topic/conditional-logic-problem/ , it seems the problem I was having is a bug in ACF because the problem is affecting nested repeaters too.

    Correct case:
    correct case

    Problem case:
    problem case

    • Elliot

    • November 24, 2013 at 3:07 pm

    Hi @squarestarmedia

    Thanks for your screenshots, very clear!

    I think you are expecting the ‘text’ column to hide when the radio button with value ‘1’ is selected, correct?

    Although this does seem like an obvious result, the column needs to exist so that you can have another row where the radio button has a value of 2. Basically, when you have a repeater field (with table layout), any ‘sibling’ conditional logic will hide the cell, not the column.

    Thanks
    E

  • Hi @elliot,

    Yes, that makes sense – I should have thought of that! However, shouldn’t it change when max rows is set to 1? There are other changes that acknowledge the fact that no more rows will be added, like the order numeral and add/remove cells being removed.

    Cheers

    • Elliot

    • November 25, 2013 at 11:26 am

    Hi @squarestarmedia

    Your point regarding max row of 1 is a good one. I’ll add this to the to-do and add it in.

    Thanks
    E

    • Elliot

    • November 28, 2013 at 1:32 pm

    Hi @squarestarmedia

    Thanks again for the UI bug. I have added in support for a repeater field with max_row of 1. Now the entire column will hide!

    You can find the code fix on github or wait until the next ACF release which shouldn’t be too far away

    Thanks
    E

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.