Using tax_input[taxonomy_slug] as conditional logic parameter not working

Support MB Conditional Logic Using tax_input[taxonomy_slug] as conditional logic parameter not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40836
    James CooperJames Cooper
    Participant

    Does the MB Builder not support adding tax_input[taxonomy_slug] as the first parameter of the conditional logic fields? I try to add it, and it does not work.

    This works as expected using the builder:

    
    'visible'     => [
        'when'     => [['profession', 'in', ['31', '32']]],
        'relation' => 'or',
    ],
    

    This does not work using the builder (where taxonomy_slug = 'profession'):

    
    'visible'     => [
        'when'     => [['tax_input[profession]', 'in', ['31', '32']]],
        'relation' => 'or',
    ],
    
    #40841
    PeterPeter
    Moderator

    Hello,

    The input value in the builder is always wrapped in single quotes so it will not work with the term ID. Please use the term slug instead of term ID in this case.

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