Forums Forums Search & Filter Pro Ability to dynamically populate second filter dropdown upon selection of first

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #40861

    Hi,
    Kind of a long shot here, but just wondering if there’s any way we could work form auto-submit into being able to filter down a subsequent dropdown, based off of the choice of the first dropdown. For instance, if I pick a specific manager from a dropdown, is there any way I can dynamically filter out the second dropdown to employees that specifically report to that manager?

    Please let me know if you’ve done this in the past or know how to get this working with the plugin – thanks!

    Tina

    Trevor
    #40862

    Yes, all you need is to set ‘Enable Auto Count’ to ON in the General tab and then in each element in the form itself, make sure Hide Empty is also ON.

    Anonymous
    #40878

    Hi,
    Ok, I see the settings now. So then would Search & Filter automatically pull the new fields from the dropdown that is dynamically changed/added in Advanced Custom Fields?

    Trevor
    #40880

    So then would Search & Filter automatically pull the new fields from the dropdown that is dynamically changed/added in Advanced Custom Fields?

    I am not sure I understand you? You have 2 fields; Managers and Employees. Are they both attached to a single Custom Post Type or normal Posts? What is that Post Type called/about?

    Anonymous
    #40898

    Within a post form, I have two dropdowns. The first dropdown allows me to select a manager. Depending on the manager selected, the second dropdown needs to be dynamically populated with employees that directly report to that manager.

    I can get this to work from our actual form using Advanced Custom Fields and some JS. However, we want the same sort of filtering functionality to work from our Search/Filter widget. I was wondering if Search and Filter does an auto refresh to pull these dynamically created fields from our Advanced Custom Field dropdown. My guess is no, but wanted to run it by you.

    Trevor
    #40899

    S&F Pro will automatically (if you set it to) automatically filter so that IF you select a manager, it will then filter out those employees who do not match in those posts with that manager. It does so based on the choices you make in the posts, not based on the values in the ACF fields.

Viewing 6 posts - 1 through 6 (of 6 total)