Page Display Based on URL Parameter Value

Hello everyone, I am just getting started with Bubble and the first use case I need to implement is to load a page with content based on the value passed into the parameter. I have read a number of questions here and watched some YouTube videos, but I am still not able to address this simple use case.

I have a date type called Invoice-Display with fields {DocumentId, Amount, etc}

Say I have an index page that is reachable through www.domainname.com

What I want is to send someone a link of DomainName.com

And I want the page to load the record matching that ID, and I want to be able to display dynamic data based on the current Invoice-Display.

How do I make the association between the passed in URL parameter and my data type?

I have also attempted adding a Page load action as shown in this tutorial without success

Please any help will be appreciated.

It is usually easiest to have the page’s or a group’s Type of Content match the data type you would want to get from the url parameter. So for example on this page you have a “Group Document”. Then make the groups data source Do a search for Invoice-Display where documentId = Get data from url. Then in your above screenshot you would put documentId as the parameter name and text as the type. Now in your Text element you would be able to say “Amount: Group Document’s Invoice-Document Amount”.

It worked, that you very much @williamtisdale .
I am off to a good start with my Bubble journey.

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