Making changes to data from one group to another in a multi-step form

Hi everyone,

Need some help in making a change to a Thing created in step 1 of the multi-step form made of groups.

I have consulted this topic to get the groups show-hide based on URL parameter and customer states. And I made it work, yes! =)
http://forum.bubble.io/t/architecture-layout-best-practice-one-page-with-multiple-functions-groups-vs-multiple-pages/12541/29

However, and maybe this is the easier part, but I’ve been going in circles entire day- When I create a thing on the first step and I want to make changes to it in the second step- it doesn’t do that.

Šteta=Claim, FYI

On group 1 (Type content: Šteta, Data source: empty) of the multi-step form when I hit button Dalje this is what happens:
Step 1. Create a new Thing (Šteta) with inputs from that group
Step 2. Stet custom state for Index page
Step 3. Go to page Index (sending parameters required to show group 2)

This successfully shows me the 2 nd group (due to condition on it) where I fill in the rest of the data to be saved (changing the Šteta created in group 1).

On group 2 (Type content: Šteta, data source: Group 1’s Šteta) this happens:
Step 1. Make changes to Thing (Thing to Change: Group 1’ Šteta
Step 2. Hide Group 2

This does not change the Šteta made in group 1. I have noticed in logs that it passes the conditions, but it seems there is “nothing” to change.

I am not actively creating User at this stage, I would be adding registration questions in the end and create a new User then (last step). The Index page does not have the data type set. And I am not sending any data to Index page. Should I? I am a bit confused if I should involve the Index page and try to send data to it and then make the group 2 pick up its data.

Any help appreciated!

Sreenshots attached.



p.s. I think I realised something new- These are 2 separate groups in the multi-step form, not 1. Each has itćs own elements and inputs. I have read some more on the forum and I believe to make changes to a thing like this it would need to be the same group, but adding new input fields and saving it as a custom state (changing fields and inputs, but still the same group) . So that in the end the form is always making and updating the same thing? Thinking out loud :slight_smile:

Why not create a custom state on the page that is the type of object you created in the first group of the form. When you create the object, set the custom state to the object just created. Then on the second page/group of the form, set the data source to the custom state. Then when you trigger the updates, the thing to change is the custom state’s object.

Another method would be to pass the newly created object as a parameter in the url when you go to page action. Make sure the parameter is the same type as the object you created, then on the second group, use the Get data from Page URL action to set it there. The update that group’s object on update.

1 Like

Thanks for chiming in I appreciate it! I’ll try to figure it out between your suggestion and creating custom states on the groups themselves. I think my problem was going into this before knowing what really custom states were and how they work and why so.

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