How to make conditional logic for image upload

Support MB Conditional Logic How to make conditional logic for image upload

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1225
    bravebitsbravebits
    Participant

    I use "image_advanced" field for upload image. Now i want to hidden some field if "image_advanded" field is empty, Have you to support that features ? If so, how?

    http://take.ms/Z8sQ2

    Thanks for effective plugin

    #1233
    Tan NguyenTan Nguyen
    Participant

    Hi bravebits,

    Sorry for the long silence and thanks for downloading and reporting about that bug. We've just released an update which wiped out that bug and you can start using Conditional Logic with image_advanced field.

    The syntax is the same as other field, but just keep in mind that image advanced field will returns num of image, so field empty that means "0" image selected.

    Example:
    'hidden' => ['image_advanced_field_id', 0]

    or
    'visible' => ['image_advanced_field_id', '!=', 0]

    Best regards

    Tan Nguyen

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to make conditional logic for image upload’ is closed to new replies.