Check condition on a multiple acf checkbox

Hi themco,

I have a ACF checkbox with multiple selections, (no single true/false checkboxes!). like:

Checkbox:
   [ ] Option1
   [ ] Option2
   [ ] Option3

How can I query in the condition of a builder element to see if one of these options has been set? For example i want to show this element only if “Option2” is set. This is not about a looper!
The only useful comparison function “string” doesn’t really work here, because in the database the field is a serialized array.

UPDATE
I think i figured it out. It is important in which order you set the condition.

Checkbox - in - "Option2"

doesn’t make sense.

"Option2" - in - Checkbox

works

Hope that helps other too

1 Like

Hello @Regnalf,

Thanks for writing to us.

Glad that you were able to find the solution for yourself. Thank you so much for sharing the information. Please feel free to reach us if you have any query regarding our theme and theme settings.

Have a great day!
Thanks

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