NO BUG: ACF true/false field in flexible content always returns false in repeater

Browser: Chrome 117
OS: Windows

Edit: Problem in this post: NO BUG: ACF true/false field in flexible content always returns false in repeater - #5 by Arvoisa

Hi @Arvoisa,

Thank you for your report. Can you please share temporary admin access to help@bricksbuilder.io with a link to this thread? Alternatively sharing screenshots of your setup would also help as I couldn’t reproduce the issue locally.

Access sent via email.

Hi @Arvoisa ,

Thanks for the login access.
You didn’t get the correct because those flexible content data should be wrapped inside a Flexible content query loop.

Additionally, you can also use {acf_get_row_layout} dynamic tag for conditionally display your layout.

Example:
{acf_get_row_layout} == test_layout, then only show the whole looping container. etc

I have marked this thread as “NO BUG”

Regards,
Jenn

@itchycode

Okay, I am now able to reproduce this error. I have this set up in demo enviroment which I have sent you earlier via email.

True/false (or radio buttons) doesnt work in flexible content conditions if in repeater

My setup is:

  • Flexible content field
    – Flexible content layout
    — Repeater
    ---- Image field (Condition set: Display if true/false field to true*)
    ---- Text field
    — True/false field: Display image

Edit: I put yet another true/false field outside of flexible content and I can now confirm: conditions in repeater field which are inside flexible content does not work and they will always return false. Also radio fields does not work at all.

I fixed title and removed no bug tag for now.

Hi @Arvoisa ,

Sorry that I missed out your forum reply. Just checked your settings and I configured it correctly here.
The conditions, the dynamic tags are in the wrong places.

I created the correct edition.
Please do not place the condition on the loop element itself as your True/False field is located outside of the repeater loop.

Regards,
Jenn

Okay, your aproach works but requires structure. Its fine if my approach is not technically possible.