# Meta Box Switch field output differs from native function

**URL:** <https://forum.bricksbuilder.io/t/meta-box-switch-field-output-differs-from-native-function/7715>\
**Category:** Bugs\
**Created:** [November 11, 2022, 12:26pm UTC](https://forum.bricksbuilder.io/t/meta-box-switch-field-output-differs-from-native-function/7715 "2022-11-11T12:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aslotta](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/aslotta/32/5419_2.png) [@aslotta](https://forum.bricksbuilder.io/u/aslotta)\
**Post date:** [November 11, 2022, 12:26pm UTC](https://forum.bricksbuilder.io/t/meta-box-switch-field-output-differs-from-native-function/7715/1 "2022-11-11T12:26:28Z")

</div>

**Bricks Version** : 1.5.7

When I use a Meta Box Checkbox field to provide an enabled / disabled functionality for the user Bricks works correctly when outputting the field’s value:

`{mb_whatever_the_tag_is}` correctly outputs “Yes”/“No” like the native `rwmb_the_value` function does (see [Checkbox - Meta Box Documentation](https://docs.metabox.io/fields/checkbox/)) and “1”/“0” when used with the :value modifier.

When I use a Meta Box Switch field though there is a difference between the Bricks output and the native output:

While the native function `rwmb_the_value` outputs “On”/“Off” (or whatever custom labels you specify in the field’s settings – see [Switch - Meta Box Documentation](https://docs.metabox.io/fields/switch/)) Bricks outputs “1”/“0” (which should only be the case when the :value modifier is used).

 ![CleanShot 2022-11-11 at 13.16.35@2x](https://forum.bricksbuilder.io/uploads/default/original/2X/0/0afd068f0d663e25d89fc4d977b9ee93ea0f42fd.png)

_Note: In my screenshot the native output is localized since it is a German installation (“Ja” = “Yes”, “Aus” = “Off”)._

---

<div class="post-metadata">

**Author:** ![andredaus](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@andredaus](https://forum.bricksbuilder.io/u/andredaus)\
**Post date:** [September 24, 2023, 11:01am UTC](https://forum.bricksbuilder.io/t/meta-box-switch-field-output-differs-from-native-function/7715/2 "2023-09-24T11:01:29Z")

</div>

I am having the same problem and it is still the case in 1.9.1.1

Did you solve it?

---

<div class="post-metadata">

**Author:** ![d19dotca](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/d19dotca/32/21300_2.png) [@d19dotca](https://forum.bricksbuilder.io/u/d19dotca)\
**Post date:** [September 29, 2023, 6:45am UTC](https://forum.bricksbuilder.io/t/meta-box-switch-field-output-differs-from-native-function/7715/3 "2023-09-29T06:45:37Z")

</div>

I noticed this problem today too when adding a new switch field in Meta Box. My conditions seem to always show “unchecked” or “off”, never “checked” or “true” despite switching the toggle on in the CPT. Seems there’s an issue here or otherwise I’m just misunderstanding how this works.
