Metabox switcher

Hi everyone,

how do I set up the conditions for metabox switchers in bricks? I tried many possibilities but nothing worked so far.

image
image
image

Have you tried === 1 ?
In the database, Metabox switch is stored as 0 or 1

Yes I have tried that too == 0 or 1 nothing works

image

image

For anyone facing the same struggle, I got the switcher to work with these settings.

1 Like

In case a JetEngine user is searching for "Switcher"Conditions, here is the variant for it

grafik

Value = true or false

1 Like

Screenshot_16
it works with acf

I did not work with Metabox, but perhaps you did not specify the field name meta parameter.

image

@zippa71 Using this setup worked for me

Yes, I forgot to mention one more thing.
When working with ACF. The checkbox has three values, empty, 0 and 1.

Might be the same for you, check it out.

Screenshot_17

1 Like

I tried that and it show now all toggles :frowning:

I tried everything, but the condition is not working for me.

He had === in his suggestion, not ==

Are you using a toggle?

You need to compare against the value of the toggle label value:Label so by default compare looks for label.

There is a filter to allow you to compare against the value which would be {field_name:value}

Dynamic Data – Bricks Academy has more filters etc

1 Like