Newbie Bubble user here. Typically, I have a newbie type question (please go easy on me if the answer is obvious!). I have built a multi-step form. It has nine sections and works well. The logic uses a state to keep track of the current form-group the user is on and a conditional attached to the ‘next’ button so when it reaches the final section, it turns into a ‘submit’ button. Here’s where my problem starts. Once I have the button changed, I would like (a) the form data sent to the database and (b) send the user off to another page. I can’t seem to wrap my head around this somewhat simple logic!
Hope someone else out there in Bubble Land has come across this in the past and may be able to help me get past this whilst I still have hair on my head!
Assuming you haven’t already created a database object to store the data, just use the action ‘create a new thing’ (to create the thing in the database with the relevant data), followed by the action ‘go to page’ to send the user to another page.
If the thing already exists then use a ‘make changes to a thing’ action instead.
Hi there, and thank you for the quick response! Ok, I think the problem may lie with the fact that I’m transforming the ‘next’ button to a ‘submit’ button; I am unable to transform its functionality from one to the other. So, all that happens is that visually ‘next’ turns into ‘submit’ when it reaches Step 8. That is fine. What I need is some logic which checks to see if the button ‘is’ submit then invoke the ‘make changes to a thing’. The only way I can work around it is to fake it by creating a new ‘thing’ when I get to step 8 rather than pressing the button. Does that make sense? I’m a bit unsure myself!
Actually, related to that - can I send one text field from the form over multiple pages from the first form? Again, sorry for appearing dumb - I have a basic idea about using a URL to carry info from page to page but really unsure how that mechanically works…
Because, when I’ve tried to get dynamic data out (a single field) i cannot seem to find it relating to the current session, i.e. once I have left the form and submitted it, getting the same sessions current data from that form submission seems impossible
@ManicMiner .
Hi there. I am newbie’r than you and came across your post. I have a similar use case where I am taking a user thru a multi-step process using forms embedded in pop-ups.
When the user fills up the 1st form and clicks the Next button on the first pop-up, an object is created in the database, and the user is taken to the second pop-up where he enters more information. Upon clicking on the Next button of the second pop-up, I need Bubble to save the information in the object created at the end of the first pop-up, and so forth until the end.
Where I struggle is saving the input of the second popup in the created object.
Any tips on how I can achieve that?
Thanks.