Support

Account

Home Forums Feature Requests Make Conditional Logic works outside siblings level

Solving

Make Conditional Logic works outside siblings level

  • Hi,

    Since groups have been added to ACF, layout possibilities are now great! (Thanks again for this feature I asked a while ago!)

    However, I found this “sad” behavior:
    • Let’s say you have two groups, A and B
    • A contains a True/False field
    • B contains whatever field, let’s say a text one.

    Now you want your text field to show based on the True/False condition.
    You’ll get a “No toggle fields available”, as conditional logic seems to only work on siblings fields and does not go through groups.

    Would be very nice to add such a feature.
    Once again, thanks in advance for your time and support.

  • I do not think this is possible based on the fact that the group field is treated by ACF as a repeater field with one row. I could be wrong, I’m not the developer. To get his input on this you’d need to submit a support ticket here https://support.advancedcustomfields.com/new-ticket/

    However, you can do this if you want to create a load field filter https://www.advancedcustomfields.com/resources/acf-load_field/. You can set the conditional logic of your field in this filter and it can include fields that ACF does not give you options for. In this case, since there will only be one of the fields you want the condition to be then it should work.

    For an example of what the conditional logic setting for a feild looks like, create a field with conditional logic and export it to PHP. You can look at the field code and use that as a guide for adding custom conditions.

  • Hi John,

    Thank you for the input.
    I’ll first contact the developper.

    Thanks again.

  • Hello,

    I am wondering if there’s been any updates that will allow Tazintosh’s request to be possible through ACF Pro? If so, would someone mind explaining how to go about doing so?

    Thanks,

    Mark Lisek

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

The topic ‘Make Conditional Logic works outside siblings level’ is closed to new replies.