Forums › Forums › Search & Filter Pro › Blank options appear in search filter
- This topic has 17 replies, 3 voices, and was last updated 1 year, 2 months ago by Trevor.
-
Anonymous(Private) January 5, 2021 at 10:30 pm #271724
Our client recently removed a few people from their website which has resulted in a few blank options appearing in the filter. They don’t want to take the time to go to each item that the people were associated to and de-associate them (via ACF) each time they want to remove someone. Is there a quick fix to eliminate the blank options from showing?
Trevor(Private) January 6, 2021 at 3:47 pm #271790You could use this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
To check which options have blanks (is it for labels or values, or both) and remove them from the array, but that can also sometimes go wrong. It would also slow things down a bit.
I am thinking jQuery might work, but you would need to code that yourself.
Anonymous(Private) January 6, 2021 at 5:37 pm #271809Ugh, we try to make things as easy as possible for our clients and we really need to avoid them having to manually add/remove items each time. If we wanted to do this via the Filter Input Object or via jQuery, any insight as to how to try and accomplish it?
-
AuthorPosts