Forums › Forums › Search & Filter Pro › Ability to dynamically populate second filter dropdown upon selection of first
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by Trevor.
-
Anonymous(Private) March 29, 2016 at 5:16 pm #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(Private) March 29, 2016 at 7:43 pm #40880So 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(Private) March 29, 2016 at 9:13 pm #40898Within 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(Private) March 29, 2016 at 9:33 pm #40899S&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.
-
AuthorPosts