How to make a conditional listing for category drill down.
eg: Select parent category from a select menu and based on the selected parent category show a second select menu for all child category.
thanks
San
How to make a conditional listing for category drill down.
eg: Select parent category from a select menu and based on the selected parent category show a second select menu for all child category.
thanks
San
- Create parent category drop down
- Create child category drop downs
- On each child category drop down, edit the field and select the Advanced tab. Turn on conditional logic and select the parent drop down and the value you want to trigger displaying the child category.
- Repeat for each child category drop down.
That should be all there is to it. Under the advanced tab you turn on conditional logic and tell it which condition must be true (or false) in order for that field to appear.
You place the conditional logic on the field that you want to show/hide... NOT on the parent field that triggers that show/hide.
That should point you in the right direction... let me know how it goes.
Hi,
Thanks Carl for the tips!
Tried creating two drop down (From Standard Fields) one for Paent and one for child category. But there is no option for to select 1st level Post categories for the parent dropdown.
So I tried selecting Category field (Post fields) and i got the categories loaded for the parent dropdown. But the enable conditional logic is diabled for bot the parent and child drop down.
How do i go about this, is ther a way to load only the level 1 catergory for parent and related sub categories once i select the level 1 category.
My mistake, I misunderstood and was not thinking Post Categories and was just thinking you were using drop downs with information you were populating them with.
Currently conditional logic does not work off a Post Category field. Conditional Logic can only take an action from a Drop Down, Multiple Choice or Checkbox field.
The big question is... do you need to store the parent category? If not then here is a solution...
- Add a Drop Down field to your form and populate it with the Parent Categories. Yes it would have to be hardcoded in this case.
- Add a Post Category field to your form and choose it to be select categories and pick the child categories for the first parent category.
- Go to the Advanced Tab on the Post Category field you just created, turn on conditional logic and select which Parent needs to be selected in order for that child to be displayed.
Basically you will need to use Post Category fields that work on conditional logic from a Drop Down (non-post) field.
I have just ran into this issue, this may not come up a lot - but when it does it would be great to have the ability to use conditional logic for Post Categories.
Basically what i am trying to achieve is:
Select Post Category 'State' A, B, C, D, E or F
If A - show Custom Field Options 1
If B - show Custom Field Options 2
etc
Ideally i would like to use contidional subcategories instead of custom fields.
I need that initial 'state' category as well.
The problem with great plugins is you stretch what you want to do with them.
After 20 seconds of thought i realised what i want to do is easy enough - i just have to set the 1st condition at the initial stage of the form, then only categories and the options will appear.
ie:
Choose State (Checkbox)
Your State is: (Only populate with single category)
Choose Region: (These then populate on the 1st conditional)
It just means having a bunch of non displaying fields - but it will work. Not a glamorous solution but it will work.
Unfortunately that did not work as expected. All the Categories are selected.
Will conditional logic be applied to Post Categories in the future? I'm looking to display different form fields based on the category selected i.e. "Events" "Resources" "Articles."
I am also looking for a solution on this very similar to Jason's problem.
Need to be able to select a state (post category field), then use conditional logic to display the county for that state, and then the city for that county.