SOLVED | How to set condition properly to button with metabox dynamic field

On a custom post type page based on dynamic data from Metabox, I have a button to be shown only when a checkbox is checked. If I create a condition on that in Bricks, the button does not show if it isn’t checked, which is fine. However, when it is checked it doesn’t show the button either.

Obviously I’m doing something wrong. Anybody willing to help me with this?

conditions verkocht

Found this in the Bricks Academy:

:value – Outputs the value instead of the label. Useful for comparing choices field types like Metabox checkbox list, etc. inside element conditions (@since 1.5.7 ), or with ACF choice fields such as Select, Checkbox, Radio Button, and Button Group

So I think you have to append your Metabox field with :value and check for 0 or 1.

See this one also:

Try it please. I am not in front of a computer at the moment, so I can’t check.

Cheers

Patric

1 Like

Thanks! The solution indeed is :value and 1. I already tried it with :value, but not the 0/1 choice.