Visual Builder: Conditionaly Hide/Show while Selcet Key = 0

Support MB Conditional Logic Visual Builder: Conditionaly Hide/Show while Selcet Key = 0Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28736
    Aaron KesslerAaron Kessler
    Participant

    Using the visual builder, I can't check against 0 values of a select option like this

    
                [
                    'name'    => __( 'Anzeigen', 'your-text-domain' ),
                    'id'      => $prefix . 'aside_selection',
                    'type'    => 'select',
                    'options' => [
                        0      => __( 'Nichts', 'your-text-domain' ),
                        'img'  => __( 'Bild', 'your-text-domain' ),
                        'info' => __( 'Infobox', 'your-text-domain' ),
                        'test' => __( 'Testimonial', 'your-text-domain' ),
                    ],
                    'tab'     => '_akdev_aside',
                ]
    

    because the visual builder won't generate code as such below:

    
    [
                    'type'   => 'divider',
                    'hidden' => [
                        'when'     => [['aside_selection', '=', 0]],
                        'relation' => 'or',
                    ],
                    'tab'    => '_akdev_aside',
    ]
    

    shouldn't this be possible?

    #28744
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your feedback.

    I've escalated this issue to the development team to fix it in the next update.

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