I want the staff member that created the working hour/availability to have it automatically added to their schedule but only when a customer confirms it by using it in a task.
Hi @Tansra,
You need to store the availability anyway, irrespective if the customer confirmed the task or not. There are 2 possible approaches:
- use 2 collections - one for availabilities, another for tasks, and create a record in Tasks when the customer confirms it
- use just 1 collection - let’s call it Availabilities - and store all the information there. The logic could be like this:
– create a collection with fields: relationship to User-Owned which has multiple Availabilities - this one will be for staff member, start and finish time, staff comments, client task description, client comments, relationship to User- Client, and status
– A staff member creates Availability record (fields: link to User which has multiple Availabilities, start/finish time, staff comments). Set “status” to AVAILABLE
– When a client would like to book the task, you show the list of all Availabilities filtered by status is equal to AVAILABLE
– Client books a task - you update Current Availability: set status to BOOKED, set relationship to to User- Client, update task description and comments.
A long time ago I’ve made a video with similar functionality - some of its parts might be useful: https://youtu.be/MS5QDDo-0Q0.
This is only one of possible approaches. I would highly recommend exploring the tutorials in Adalo academy, searching through the forum and exploring app templates.
Best,
Victor.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.