Hoping someone can help.

Using multiple exposed filters is it possible to only show a display field in the results based on whether or not the user has entered / selected criteria on a given exposed filter?

Example: I have two exposed filters (select lists)
1. List one
Choice A
Choice B
2. List Two
Choice C
Choice D

In the display results by default I only show the title of the records returned.

However, if someone chooses to filter their search by selecting List One > Choice A, I would then want to show in the display results field the Title field along with List One field and its value. Like So:

Title: Title of record
List One: Choice A

If someone filtered their search by selecting more than one filter then I would want to apply that logic as well in the display results as well. Example, they select Choice A from List One and Choice C from List Two:

Title: Title of record
List One: Choice A
List Two: Choice C

The option to Hide From Display if no value doesn't work for me in my case as I specifically want to return fields to the user based on whether or not they were used in the search while hiding those that were not searched.

Thanks for help.

Comments

merlinofchaos’s picture

Status: Active » Fixed

The only way I could think to do this would be to theme the row style to check $_GET and show/hide the fields based upon that data. Probably not trivial to do, but doable.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.