Sugestions of exists operator

Support MB Conditional Logic Sugestions of exists operator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17966
    JackkyJackky
    Participant

    Hi, I'm trying to do this type of logic: when user filled single_image either text field, the other field is brcomes hidden. That's how I reached the goal for one field with match operator, but I can't make text field hidden if image is selected, so I suggest to make some operator, like 'exists' or 'not empty'.

    
    
                    [
                        'id'              => 'logo',
                        'type'            => 'single_image',
                        'name'                => 'Лого',
                        'hidden'            => [ 'title', 'match', '.+' ],
                    ],
                    [
                        'id'              => 'title',
                        'type'            => 'text',
                        'name'                => 'Текст',
                    ],
    
    #17990
    Anh TranAnh Tran
    Keymaster

    Hi, I haven't tested but I think a rule like ['logo', '!=', ''] should work. Can you please try it.

    #17997
    JackkyJackky
    Participant

    I've tryed different combinations, and this too, but nothing works as I want

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