How to filter dropdown field by condition

Forums › Forums › Search & Filter Pro › How to filter dropdown field by condition

Tagged: , ,

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #147787

    Hi, is there a hook or filter to add condition (ex: is empty) to dropdown showing field?
    We need to hide some option if other condition is verified (for example if a post has related past events). How can we do that? Thank you

    Trevor
    #147788

    If this is to happen with the form as the user interacts with it, then I guess you can use javascript to do this (hooked to the change event), or if you need to change values shown, you can use the Filter Input Object filter.

Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.