Trouble passing data along the pages of a flow

I built a flow with 1 question per step. The user is not logged during the flow and I don’t know how to pass the values of the user’s responses from the 1st step to the last step at which the user creates an account.

Example at this step I’d like to save the answer based on the button clicked by the user.

I need to store all those values because they are mandatory to call an external API from a partner at the last step of my flow.

Thanks a lot for your help!
Cheers

Just store them in Custom States, and then upon creation of the User account set the relevant User fields to those Custom State values.

1 Like

Awesome, gonna try it. Thanks a lot mate

1 Like

Hey Adam, me again. I tried several things but I’m afraid I’m doing something wrong here:

First I created the option set project_step that I need to set the custom state when the user clicks in one of the 3 options offered

Then I made sure to add project_step attribute to my User type (see Data types tab)

Then I went to workflow editor to set the state for each button (booking, hesitating, planning).

On the same workflow I added the value of the answer as an URL parameter to the page when I’m redirecting the user from step 1 to step 2 of the user flow.

I don’t want to have to send the value of each step as an URL parameter (not clean and lots of setup I guess).

But I don’t know how to use to do what you said earlier: “set the relevant User fields to those Custom State values.”

Here’s a snapshot of the signup setup so far:

Thanks again for your help.

Ah… sorry I didn’t realise you were doing this across multiple pages…

The only way to ‘send’ data from one page to another, at least in vanilla Bubble, is through URL parameters. Either that or store it directly in the database.

You could also use session/local storage if you don’t mind using a plugin or some simple. javascript…

That said, is there a need to do this across multiple pages? Can’t you do it all on the same page?

Yes I need to do this multipage structure for this test as I’m trying to learn about conversion rate between a one page long form (our current product) and this new flow with questions broke down into dedicated steps.

Regarding the options you mentionned:

  1. Use URL parameters: I managed to do it between step 1 and step 2. But I did not manage to combine the URL params with and & symbol between each parameter. Any idea how to do it?

I’m going to try with this option checked “send current page parameters”

Screenshot 2024-05-08 at 17.25.48

Do you know how the URL parameters can be used to create the user at the last step of my flow?

  1. Store the user answer in the database: that would imply signing up the user when submitting the step 1 no? or there is a way to do an “invisible” signup?

@adamhholmes yes the option checked works like a charm:

number_participants?project_step=hesitating&participants=alone

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