Passing object between pages

Hi all,

I have a data type called Listing, which contains a field call Country (option set). On page A, I have a field that let user to choose which Country, then I’ll redirect them to page B. On page B, I will display a repeating showing list of Listing where Country=input user choose from page A.

I tried using URL parameter, but however it pass as text but the field expect an object. Is there any way that I can pass an object between pages to achieve this?

Thanks!

The only other way that I can think of will be creating another Country field but as text data type. Then it can be used to compare against the text from URL parameter. Any other better solutions?

URL parameters can indeed pass objects around, you just have to send the unique I’d of the object as the value. Bubble qu’il be able to understand this when getting the data, as long as you don’t forget to specify the type

Thanks for that! I figured out how to do it.

In my case, it should go Get an option and filtered them down where it’s Display = Get parameter rom URL.

Great work! Just make sure you don’t create options with the same display. In an ideal world, it would be better to create an id field for each option. You can make id’s like “001” or what not. It would make your url’s shorter and make it harder for users to mess around with the url to be something that’s normally not accessible in your UI.

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