@GuyRoss
Okay, so I believe you’d have to signal the start time as a number and make it equal to total minutes, so 1AM would be 60 while 1PM would be 780.
Then you need to also have a custom state of end time, which also would be a number value for storing the total minutes of the end time slot value.
After that you can run the recursive backend workflow to create the other time slots which would become a custom state list of time slots. If I am not mistaken, I do not believe you can run a recursive workflow on the page to set the custom state value, as the only way I know of how to run recursive workflows is in the backend, which would not provide access to a pages custom state value.
Is there a way to do recursive workflows on the page to set the custom state?
If there is a way to do a recursive workflow on the page to set that custom state list and you can populate the custom state list, then in your repeating group you will need to set you text to display the minutes as time values like 1:30PM or 4:30AM, which would just require a bit of math and formatting.
If it is not possible to run a recursive workflow on the page, which I believe it is not, then the custom state list would not be possible in my mind, but you could try to implement a similar technique by using the list of numbers plugin to create the list of numbers (ie: total minutes) and then transfer that to the custom state list of time slots.
Lastly, for the purposes of scheduling, how do we account for the time slots that have already been scheduled? My assumption is this is for a professional who wants to allow people to schedule meetings of some kind with them, and so we need to make sure any time slots on any particular date that have already been scheduled, and therefore made unavailable, do not make their way into the custom state list of time slots.
For that you would then need to run a workflow that looks at the user who ‘owns’ the calendar schedule to see their currently scheduled events for that day, extract the time from the scheduled event (if there are more than one, extract the time from the list of events), and then run a workflow of some kind to remove that list of unavailable times from the custom state list of times.
Obviously, I’ve never done this and I’d love to see an example of how it works, because I’d like to learn a new trick to implement in the future.