Make Changes To A Thing — Not Working

I created a multi-step form on one page using custom states and would like the user to edit their submissions. I’ve read and tried most of the tips provided in the forums and struggling to get this to work.

I was able to push the user’s data to the forms to edit, but when I click on the save button (that makes changes to a thing) a new submission is created instead.

A bit lost on how to get this to work.

Any help here would be appreciated.

You’re obviously doing something wrong in your workflows, but it’s impossible to say what it is without knowing what you’re doing…

Feel free to post some screenshots of your workflows if you want someone to be able to offer some specific help…

Hey @adamhholmes

Thanks for getting back to me. I’m guessing it may be a workflow, but currently been stuck on this issue for over 12 hours trying to get it to work.

Here’s my shared page/editor: Pytch | Bubble Editor


Let me know your thoughts and any help here would be amazing.

I’m building a music PR software. It’s actually a big update I’ve been working on for months now, and I’m close to completion after this hurdle :slight_smile:

How/where/when are you defining the Floating Group - Nav Bar’s Submission? (I can’t find any workflow that’s doing it)…

I have the Floating Nav Bar under Submission, no workflow at the moment.
At the end of it all, the submit submission button will be on the last page of the form.
For now, it’s on the navbar for testing purposes and a quicker access to submit entries.

So there’s your answer then (its Datasource is empty and not being defined anywhere)…

i.e. you have two workflows set to run when the Submit button is clicked - one when the parent group’s Submission is empty, and another when it’s not empty - but at the moment it will ALWAYS be empty (as you’re not doing anything to define it) - hence why the Create Submission workflow is running every time and creating a new submission.

If you want to other workflow to run (the one set to run when the parent group’s Submission is NOT empty - the one that makes changes to an existing submission), you’ll need to ensure that the parent group’s Submission is NOT empty.

@adamhholmes Interesting! I’m going to give this a try right now.

I thought making this group would’ve sufficed.

The Group nav Buttons Left datasource is its parent group’s submission - but the parent group (the floating group nav bar) doesn’t have a submission defined - its datasource is empty, and you’re not doing anything anywhere to define it.

So the Group Nav Buttons Left Submission remains empty - which is why the same workflow is always running.

Hey @adamhholmes

So I just moved the submit submission button to the last page of the form. I’m still getting the same result. I just tried editing a submission and it’s still duplicating. I defined the group as well.

It looks still empty to me (I can’t see where you’re defining the Submission)

You can check in the debugger when you click the button to see for sure (but I can’t see how you’re defining the Submission anywhere in your current workflows)

@adamhholmes Here’s what it looks like on the debugger. I really can’t see what I’m doing wrong here…the datasource is Parent’s Group Submission. What am I doing wrong here?

You’re not defining the submission anywhere - you’re just setting the datasource as the parent group’s Submission - but the parent group’s submission is empty…

At some point you actually need to define a specific Submission in order for it not to be empty.

I sorta understand what you’re saying. How would and where can I define a specific submission?

Presumably you’d want to use the same workflow you use to make changes to a submission to define that submission in the relevant groups.

Alternatively, just change the reference in the conditional of the two workflows to refer to whatever group you’re defining the Submission to make changes to (that’s probably the easiest and most logical way).

In Step1 and step4 you are making changes to submission,
Step2 you are resetting inputs which you might be using in step4
also you are refreshing the page in step3 , which means if you are using state then it will reset, this makes step4 not to work
check and let me know if this help

@ronald1 Thanks for catching this. I just cleaned up the workflow process, but the results are still the same. I guess, what I’m trying to figure out is…how do you define a submission? I’m relatively new to Bubble.io with a few months under my belt, so some clear steps here would be helpful.

You just need to use a Display Data workflow action - to set the Submission value in the relevant Group (or Groups)

So, whenever you select an existing Submission to edit, you need to use Display Data to define which Submission to edit.

Then you can use that reference in your workflow conditions to determine which of the two workflows will run (i.e. when the Submission is empty, and when the Submission is NOT empty)

@saviorabrams You might need to check on privacy also if you are trying to make changes to submission and you are not the creator.

@adamhholmes I’ve used the Display Data functionality and everything works great. See screenshot below. Saving the submission after editing is the part I just don’t get why it’s not working.

@ronald1 I’m testing this as the User, so the privacy settings are ok. I’ll double check.

I think I might have solved the issue. I added a Display Data function and push “Parent Group’s Submission” to the Group - Back/Next Button which also contains the Submit Submission / Save button.

It’s roughly 5:00am here in Los Angeles, so I’m going to get some sleep but any feedback and guidance from the community is always appreciated.

1 Like