Conditional logic shortcode issue

Support MB Beaver Builder Integration Conditional logic shortcode issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14877
    NickNick
    Participant

    I am trying to use the technique found here to display content if one of my fields has a certain value.

    In my specific use case, I have a Switch field and want different content to display depending on On/Off status. This is what I have:

    [wpbb-if post:meta_box field='super_fox' exp='equals' value='1']<i class="fab fa-firefox" style="margin:0 .5rem;"></i>[/wpbb-if]

    The Firefox fontawesome icon does not disappear if I flip the Switch to Off despite the database showing a value of 0.

    Am I making a simple mistake in the shortcode syntax?

    #14882
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    I'm not sure about the syntax, you probably need to get help from BB team.

    But in this case, you can use the MB Beaver Builder Integration to do the same using the Conditional Logic popup. Here is what I've tested:

    https://i.imgur.com/zqh9715.png

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.