Condition not working on a top level component

I added a top level component to a page, and I am trying to use an ACF true/false field to hide it. I have a string set in conditions with {{dc:acf:post_field field="show_banner_1"}} is 1 and the element doesnt show. However when I add that acf code to a text block it does output 1

When I put this component into a section > row > column > component element and then add this condition to the top level section it DOES work.

Hello Kyle,

Thanks for writing in! What is the return format of the ACF field? You may need to check it. In your condition, you should be using the Number.

kindly let us know how it goes.

Thanks! Changing from string to number did the trick.

Hey Kyle,

You’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.