Hi everyone,
need help in building my search/filter page.
Here below you can see a screenshot of the main input fields i want the users use to search in the database. The website is about escape rooms so: the first field is a searchbox, where you can type the name of the room or a location, and the second is a simple dropdown menu where you can choose the gender of the room - i’m still working on both of them.
This post is about the last element, the number of players.
What i want to do, is that the users select a number of players (e.g. 5), and the repeating group shows only the rooms that allows 5 players. Every room has 1 field (numeric) which is ‘‘min players’’, 1 field (numeric) which is ‘‘max players’’, and 1 field (numeric range) which is ‘‘players’’.
I’ve been working for so long, and tried many different ways, but each of them show at least an issue.
Here are the ways i tried and the problems i have:
OPTION 1 (my favourite): i wanna have a dropdown showing a list of numbers, which stops at a certain point, e.g 1, 2, 3, 4, 5, 6, 7, +8. If the users search for a specific value, then the database will show all the rooms where min. players < selected number < max players. If the users select ‘’+8’', the repeating group will show all the rooms where min. players > 8.
i can’t make it to work because:
PROBLEM 1: selecting static choices in the dropdown, makes the element to be recognized as text and not as numbers. That means that is not possibile to set the conditions between those options (that are text) and the related fields in the database (set as numbers). How can i solve this issue?
I also tried using ‘‘dynamic list’’, where i can set the type of choices, but where am i suppose to take this list of numbers from?
Here some screenshot about this section
PROBLEM 2: can’t figure out how to use a numeric range field. In the editor is not possibile to type anything, so how is this suppose to work? Can you please make some examples?
OPTION 2: this is the second choice, as the standard slider is not very good looking and very few aestethic fixes are available. This option forces me to set the max value of the slider as the overall max in the database, which means i can’t use the +8 option. Still, i might be open to this solution.
However here i’m still facing the OPTION 1>PROBLEM 2.
Of course, i’m open to all ideas you have, i could be flexible in the ux, is all about balance with ux and making the search work and be fast.
Thank you in advance for your help. Dont’ hesitate to ask if i was missing some details or you need more information!
Andrea