Jump to content

Search/Filter Modules - Can we treat individual field values differently?


Matthew Bayliss

Recommended Posts

We want to create either a search module or an advanced filter for a project but we're struggling a bit figuring out how to get it to return the results we need. Probably easiest if I give an example:

Lets say on a dog breed site we have a field for "needs garden" that has two options: Yes / No

We want the user to be able to select whether or not they have a garden to filter the results to only show suitable breeds.

The problem is that a dog that doesn't need a garden could still live in a house that has one. Therefore we don't want to exclude dogs that don't need gardens from searches made by users who have a garden. 

Basically this is what we're trying to achieve:

  • If a user selects they don't have a garden (ie: Garden: No) then it should only show breeds that have the No value for that field.
  • If a user selects that they have a garden (ie: Garden: Yes) then ideally it would show breeds that have either Yes or No for that field.

Is this possible?

 

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...