Forums › Forums › Search & Filter Pro › Is there a possibility to hide all items on dropdown?
Tagged: afc, All items, conditional, dropdown, Hide, meta field, V3
- This topic has 11 replies, 2 voices, and was last updated 4 years, 7 months ago by Anonymous.
-
Anonymous(Private) April 7, 2020 at 10:53 am #239250
Hi there,
is there a chance to hide all items on a dropdown filter?
Or do i have to hide it via CSS code maybe?I started a search, but couldn’t find something in the documentation or forum.
Another question is there a possibility to have conditional acf meta fields?
For example:
If i choose from a dropdown (meta field) “Shops” or “Restaurants”, that there will be shown an additional dropdown (which differs from the selection made)?Thank you for your help!
Best regards,
TimTrevor(Private) April 7, 2020 at 10:59 am #239251Q1. is there a chance to hide all items on a dropdown filter?
A1. Via CSS yes, which could be triggered by JavaScript. Both would require custom code though.Q2. Another question is there a possibility to have conditional acf meta fields?
A2. I am sorry, but this is not possible in the current version of the plugin. It may become possible in V3 (due soon).Trevor(Private) April 7, 2020 at 11:13 am #239257I don’t, I am sorry. My guess is that what you want to do is hide the options till a selection has been made in another field, in which case would it be better to hide the entire field until that selection is made?
In which case, that is much the same as Q2 (but slightly different).
Anonymous(Private) April 7, 2020 at 11:29 am #239263Q1: Not i just want to get rid of the “all items” option in on dropdown. That clients can only choose option 1 or option 2, but not all items. I think would hide the option field with CSS. Maybe the quickest way to do that probably. Couldn’t find another setting to do that.
Anonymous(Private) April 7, 2020 at 11:40 am #239273Maybe I found another solution for that problem… I mean it’s not first option, but better to do it that way. The good thing is, that the option is one of the first selections a user has to do. So what I do now is to build two different pages for results and producing two search forms for it. So the problem is solved for that. Then I also have a solution for Q2, because I am on the right selection to place the correct dropdown.
-
AuthorPosts