I am trying to set constraints to search options in my app. I have created a dropdown with dynamic data that gives various price ranges which a user can select. However, I have created a repeating group of user listings and one of the options for a listing is for them to give a specific price (eg. £199) rather than the price parameters I set.
Is there a way to add a constraint on my app that only shows listings where the price of a listing falls within the the budgets I set out in my data? I have attached a screenshot as an example:
Hoping someone can help out.
Building on what you have already, I suggest that everytime an outfitter listing entry is created … both the budget range value and also a price value be created.
This way you can use your dropdown’s value in the search constraint because the price is … right!
I thought about this but in terms of UX it feels like making the user fill out an additional parameter is a bit over the top. Ideally I’d like the price the user sets to automatically fit within the budget parameters. Maybe I’m wrong haha
Create a DB thing or maybe an option set.
You will have three fields: The range field that will contain text with your current category (example £199 - £299)
Two number field or a range field of number
You will enter 199 in one (i will call it bottom), and 299 in the other (I will call it top).
Your RG will be filtered if price >= Dropdown value 's top / price <= dropdown value’s bottom
Your RG will need to use dynamic data source that point to the new DB
This topic was automatically closed after 70 days. New replies are no longer allowed.