Pretty complex search - Need help

Hi all,

I’m trying to solve a rather complex data source, hopefully you can guide me in the right direction.

So for a calendly-like app, I’m displaying all available hours for a certain day. When the first ‘visitor’ books a certain hour, I want all hours to be invisible for the second ‘visitor’. However, this second visitor should be able to select the 2 hours that are available right after the ‘first visitor’s’ hour as well as the 2 hours that are available before the ‘first visitor’s’ hours.

Only when these hours do not work for this ‘second visitor’, all available hours are shown again.

Yet, ‘visitor three’ will only see 8 options at first. The 2 before and 2 after the ‘first visitor’s’ hours, as well as the 2 before and 2 after the ‘second visitor’s’ hours.

And so on…

So basically, I’m trying to bundle these appointments together as much as possible.

Thanks!

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