@authenticyogi I created a small example you can clone from here: Multi Schedule Example
Creating a Counter
As we do not have the option to use variables to keep and updated the counter value, I am using a collection to manage the counter:
Overall Flow
The overall flow looks like this:
The user enters start date and time, Title of the class, and number of repeating sessions (max 5 in this example).
1. Create Counter
2. Create Class Schedule
First we create the last session.
3. Update Counter
We subtract 1 from the number of sessions.
Note that after we create the counter value in the first step, we can now reference the new record with New Counter.
4. Repeat steps 2 and 3
The maximum number of sessions we can create with one click depends on the number of repeating steps.
5. Delete Counter
To have multiple users working at the same time you would need to have the counter in the User collection, which I skipped for this demo example.
As I said before, it is not a very elegant solution to simulate a loop.
Tomorrow August 4th, the new component marketplace will launch with a calendar component.
It is probably a good alternative to use the calendar component and let the user click on a date to create the schedule.