Custom Fields
Re-Envisioned
Support Meta Box Conditional Logic Visual Builder: Conditionaly Hide/Show while Selcet Key = 0

  • Creator
    Topic
  • #28736
    Aaron 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?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #28744
    Long 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.