Dynamically Hide via ACF not working as expected

Hi,

I am trying to hide certain elements on a Template via ACF radio buttons, but it is not working as expected.

I have ACF setup like this, there are actually two (one for “Hide Add to Cart element” and one for “Hide Find a Dealer button”). I have the ACF elements set to accept “Null”, by default they are Null.

In the template I have it setup like this:

On this product I have it setup like this:
https://popup.uxmediahouse-dev.com/products/et-j1-880/

The issue is that on any other products where the radio button is NOT selected, the elements are still being hidden:
https://popup.uxmediahouse-dev.com/products/205st30k-flip-over-hitch-for-semi-tractors-and-cab-chassis/

What am i missing?

Hello @uxmediahouse,

Thanks for writing to us.

To help you with your concerns, we need to check your settings. I would request you please share the admin login details meanwhile I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URLs

You can find the Secure Note button at the bottom of your posts

Thanks

sure, thanks! attached below

Hello @uxmediahouse,

I suggest using this {{dc:acf:post_field field="hide_add_to_cart"}} dynamic content code to retrieve the meta field value for comparison and setting the conditions.

Hope it helps
Thanks

1 Like

Awesome, i see. I was approaching it backwards. This way gives a LOT more control.