How can I pass temporary data between pages

On my index page, I have three buttons for a role the user can play in a chatbot roleplay.

Rather than create a chatbot page for each role, I want to use a generic chatbot page that adapts to reflect the choice made by pressing the button.

So if the user chooses A, the chatbot page shows text related to A. If they press B it shows text related to B. It also use the choice to select things from a the database, so I only need one database not three.

As I understand it custom states are within pages, so I cannot use them to pass the choice from the index page to the chatbot page.

So I thought I would add a field to the user database named something like “mode” but I cannot figure out the simple job of setting a value for that field when the button is pressed.

I’d be grateful for your advice to find a solution.


To set a database value when a button is pressed just use a ‘Make changes to thing’ action, and set the required field value on the required thing.

That said, there’s probably no need to write to the database for this.

Simply using URL parameters would likely be a simpler and less WU wasteful option, or you can write to session storage instead.

Hey Gary

That is simple problem your are facing, Check out this YouTube
video for an easy fix Bubble Basics: 1 of 4: Sending Data via URL - YouTube

I wish you well.

Thank Adam. I went the URL route and it does exactly what I need.

1 Like

Thanks for the video which helped me arrive at an elegant solution whose principle I can use elswhere.


1 Like

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