Filter listings according to a "delivery area" input value from searchbox value

Hi everybody,

I am searching for an answer to this question for days now but never could find a way out… maybe someone has the answer :slight_smile:

I have a list of listings, and when a user submit a new listing i ask for a “delivery area” (in a input) which is a number.
What i would like to do is to filter the results of the search according to the value entered in the input delivery area when the user submitted his listing.

Does anyone has an idea of how to make it happen please ?

Thank you very much :slight_smile:

Are you searching in a repeating group? If so you can just use the constraint function.

If this isn’t the answer, please provide some more details,

Daniel

Hi, thank you for your answer :slight_smile:

Yes in fact, I am searching in a repaeating group, could you be more specific about the constraint function please ?
I already try some with it but couldn’t find the way out from here.

I did -> location is within list of rentals list of listings delivery area :count km of searchbox value
but it doesn’t work because it says “delivery area” is not a number. this is strange because, in fact, this is a number…
for the moment i let “location is within 100km of searchbox value”.

If you have some advice i’m listening, thank a lot !

Please tell me what you’re trying to filter. From what I can gather, the “delivery area” is the number of kilometers the listing will be able to deliver from their location. If this is correct, then you should do the following:

location is within [search listings (filtered to the listing you want) :first item’s delivery area] km from searchbox’s value

There should be no :count involved in the expression.

Hope this helps.

Yes this is exactly what i would like to do, if someone click “paris” in searchbox, i would like all listings with a delivery area (number of kilometers) high enough to reach paris to be visible in the results.

I just tried what you suggest but i probably miss something, it does not include the number of kilometers of the delivery area in the search result. Anyway your a great help and this is kind to take time to answer me

Actually, instead of “search listings”, maybe it’s “This Listing”. If you have that option, use that instead.

No, it does not work either. My repeating group is in a group, do you think this is the reason why it does not work ? also tried some other solution but no, still doesn’t work

(zone de chalandise = delivery area; listing oeuvre = the name of my list of listings)

40 AM

From the image, I see you have “Listings oeuvre’s” twice. The following expression should work. If it doesn’t I have no idea:

location is within [this listing’s delivery area kms] of [searchbox’s value]

Yes I know, i don’t know why each time I try to do “listing oeuvre” bubble make it double.
Ok, I’ll try what you suggest, thank you very much for your time :slight_smile:

1 Like

It’s possible that the second “listings oeuvres” is a state. That would explain it automatically filling in that value. But ok, let me know how you get on.

Good luck!

Thanks ! I’ll let you know if I find a solution or not and how :slight_smile:

I think i figured it out something. with your first guess : location is within [search listings (filtered to the listing you want) :first item’s delivery area] km from searchbox’s value
bubble, takes only the delivery area of the first listing and apply this number to all the other instead of extract and apply from each listings the corresponding value.

Hi @emmanuel,

I am really sorry to bother you with my problem but I noticed you don’t hesitate to help bubble users on this forum so maybe you will accept to help me on this one, it would be very nice of you :slight_smile:

I have a list of listings displayed in a repeating group. Each listing has a location and a delivery area (number of kilometers) which is defined in an input field when the user submit his listing.
What i would like to set up is, when a customer enter a location in the searchbox, all listings with a delivery area (number of kilometers) high enough to reach the searchbox’s value locationto be displayed in the repeating group. if the delivery area’s value is not high enough i would like the listing not to be displayed.

I would like to know if it’s possible and how to set this up. I tried for a week now with constraint “location is within” but it doesn’t work at all and i am really stuck right now… thank you very much for your time and your help :slight_smile:

It is perfectly possible to do what you are trying to do.

I would suggest the best way to get help is to post a link to the page in your app, and make sure the app is Public.

Hi @NigelG

Thank you for your answer. I’ve just made my app public and put it in “everybody can edit” mode.
Thank you very much for your help :slight_smile:

https://bubble.io/page?type=page&name=search_page&id=locationoeuvredart&tab=tabs-1

by the way, listings are called listing oeuvre and delivery area is called zone de chalandise in listing oeuvre.

don’t bother, i’ve stop trying i don’t have a week to spend on one functionnality
but thanks anyway :slight_smile:

This topic was automatically closed after 70 days. New replies are no longer allowed.