How to display data that has just entered the database on a new page?

The user has just registered budget data within the database. When clicking on the “complete registration” button, the data will be stored in the DB, and I want the user to be directed to a new page with the same data that they just registered. This new page will act as a preview, so you can share it externally. Can someone help me ?

1 Like

Hi. You can try to include a Display data in the “complete registration” button workflow, and chose the new page (or the relevant group in that page) as where it should be displayed.

In “Display data” it searches for elements that are on the same page, I want to take the data to another page. I tried here and didn’t find the group on the other page.

Hi, I’m not an expert on this, and I usually google my way through stuff if I encounter some issues (or I ask questions here on the forum).

I ran your question through a GPT that has been trained on bubble, and here is the feedback I got, and I hope this leads you in the right direction:

To achieve this in Bubble.io, you’ll need to follow a series of steps involving saving the data to the database, then navigating to a new page where the saved data is displayed. Here’s a concise overview of how you can do it:

  1. Data Registration: Ensure that when the user clicks the “complete registration” button, the input data is correctly saved to the database.
  2. Navigation to New Page: Use a workflow to navigate the user to a new page after the data is saved.
  3. Data Transfer: Pass the unique identifier (ID) of the saved data to the new page.
  4. Data Display: On the new page, retrieve and display the data using the passed identifier.

Detailed Steps
Step 1: Saving the Data

  • Go to the workflow for the “complete registration” button.
  • Add an action to “Create a new thing” (if it’s new data) or “Make changes to a thing” (if you’re updating existing data), specifying the type of data and fields to be saved.

Step 2: Navigating to the New Page

  • Still within the same workflow, add a navigation action after the data save action.
  • Choose the “Go to page” action, then select the page you want to navigate to.
  • Pass a parameter to the new page, typically the unique ID of the data you just saved. You can do this by adding a parameter in the “Data to send” field.

Step 3: Receiving the Data on the New Page

  • On the new page, you’ll need to capture the ID passed as a parameter.
  • Use this ID to do a search in your database for the matching entry. Set this search as the data source for the elements (texts, images, etc.) that will display the data.

Step 4: Displaying the Data

  • Use dynamic data to fill in the content of text, image, or other elements on the page. For example, if you’re displaying the name from the registered data, set the text element’s dynamic data to “Current page thing’s name.”

Preview and Share

To make the page shareable externally, ensure its privacy settings allow for public viewing, and consider using meaningful URL parameters (like a name or ID) for easy access.

By following these steps, you can create a seamless process for users to register data, preview it on a new page, and share that page externally.