$ Is this easy or possible?

Hey Forum,

I am unable to come up with a solution to this, maybe someone can.

I’m trying to create a, somewhat, scheduling function in my app, here is the flow.

  1. A user sets their availability, say 9 am -5 pm.
  2. The workflow will create 30-minute slots between 9 am and 5 pm.
  3. A user will select a duration for the appointment, 60 min, 90 min, 120, min
  4. The system will schedule multiple 30-minute slots to accommodate the duration selected by the client.

If a client selects a 60-minute session, Bubble will schedule two 30-minute slots. This is done to keep the schedule availability dynamic. For example, if we do slots of 60-minutes instead and someone wants to book a 90-minute session, we can have an administrator correct for that, but that would leave 30 minutes wasted.

I have been able to get all of the above to work, but there is one glaring issue. getting the repeating group that shows the availability to know if someone is selecting a duration that isn’t available. For example. when someone selects a 90-minute appointment and start looking at the repeating group of available times. The schedule might show from 9 am to 4:30 pm and someone can select the 4:30 pm time, but there isn’t space at that time for a 90-minute session.

Here is what I am looking for: I want to be able to pull data into a repeating group that is within the constraints of the duration. So if someone selects a 90-minute session, the system understands that is three 30-minute intervals and doesn’t show times where that is not the case.

I think I did a pretty good job of typing that out, but here is a loom video just in case: https://www.loom.com/share/909e0635a76c482bbf00dedab56821c6

Let me know :slight_smile:
Benjamin

PS. I’m willing to pay if this is something you would be comfortable helping with. :slight_smile:

You have to check the availability of the time slots and after show the availability. If the user have select 85 min you have to add a conditional to your repeating group not show the times that is not possible to get 3 sequeces of time slots.

This topic was automatically closed after 70 days. New replies are no longer allowed.