ACF - Conditions - Show an element depending on the value of a Field

I have a Text element that I want to show depending on the Value of a field. We want to use Conditions to make this work, but we couldn’t figure it out.

Our ACF Field is a checkbox that has 2 options: Online and Offline.
The Text element should only appear if the ‘Online’ option is checked.

How can we achieve this using Conditions for the Text element?

Hey @bobbyninetoes,

Thanks for reaching out!

In your text element, go to the condition and choose expression as string. The condition is something like this one:

{{dc:acf:post_field field=“options”}} is Online

image

fields=“options” is the name of my ACF.

Hope that helps.

thank you!

Hey @bobbyninetoes,

You’re most welcome!

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