Order collection not switching to new order with multiple orders

Hi everyone,

I’m hoping to get some advice on an issue I keep running into while building my delivery app.

I’m trying to build a multi-order flow where a user can create up to 3 Orders per 1 Trip. Each Order stores the pick-up location + package details from another collection, and everything rolls up to the Trip.

When I tap “Create another order”, the app doesn’t switch to the newly created Order. Instead, it keeps reusing/updating the previous Order record (the Order ID shown on-screen stays the same).

Is there an easy fix (linked data / navigation / create action order) or is this a sign I need to restructure the flow again?

Current flow:
Create Contract screen → “Add delivery details” → package/pick-up forms → back to delivery details → then back to Create Contract screen where Delivery #1 gets checked off → repeat for Delivery #2/#3.

I’ve attached screenshots below. Any help or direction would be appreciated and let me know if you need more info!

thank you

Hi @ada,

As an inspiration - have a look at this course Create a Robust, Flexible Shopping Cart System, some approaches might be useful in your case.

Best,
Victor.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.