Good day to you all.
The booking form for trips has only a few choices that the parents select to book their kids on the bus: their name or names, and the direction (home/school) with an option each for laundry if they are not on the bus themselves. It is a Form Container writing to Trips table. There are two more Name columns, for each direction (NameH and NameS), which may be modified as described below. The relevant column is used in the schedules/bus lists for that trip, not the original Name column.
Now to complete the actual entry I need additional data like where to pick up, at what time, in what sequence, where to drop off etc. Al this info is available in the Trips table in relation/lookup/calculated columns. But the drivers often need to change that if conditions change, like schools closing earlier. I also need to change the name for that trip to “Name’s laundry” if the Laundry option is selected, or “Name +1” if they take a friend with them. Therefore each of these columns have a corresponding text/number column.
To do this I use an After Submit action that triggers a workflow with 1 parameter, the current RowID. The loop is filtered on the Trigger RowID. The workflow consists of sequential steps, starting with the Home trip (If Home selection is not empty) and writing all the calculated etc. values to their corresponding columns. Then follows an If for laundry and an If for friends, updating the NameH column (they are mutually exclusive…)
After that follows the same process for the back to School trip. But it does not update the columns. I even tried splitting up the 2 processes and using a 3rd workflow to start each of them, but it seems I cannot start 2 workflows writing to the same table.
Here is part of the booking form. If the Additional switch is off, the last 2 fields do not show. I added 1 friend on the bus to school (only laundry going home) and a different bus stop to be picked up at going back to school.
And part of the workflow
Thanks for all the help so far. I am still losing the data on the parents/children helper table if I add an email address to an existing user and then select that user from the Viewing As dropdown, but I can live with that for now.