Loop to create a document with different date

Actions & Logic

Hello,
i al not super comfortable with loop
I am trying to use loop to create several document for a travel app
Let say user will travel from 09/15 to 09/25
(in order) if user want to visit Paris for 3 days, London for 3 days and Madrid for 4 days,
i want to loop and create document:
- Paris: 09/15, 09/16, 09/17
- London: 09/18, 09/19......

So far i managed to create a simple loop that create 3 documents (Paris, Madric and London)
but i want to create specific date for each visited town

on screen shot you will see that the visitedTown document has the date of visit, so now since i don't know how to loop through it, i put the startDate from the trip document

What have you tried so far?

watch tutorial on loop (the updated version)

Did you check FlutterFlow's Documentation for this topic?
Yes
2
5 replies