I created a form linked to database for taking online orders but want to set a limit of 1 order per day. Is it possible to blank out or hide dates which has already been booked?
Eg. someone makes an order for 5 feb 2018, and the next person will not be able to make an order for the same day.
Hi Fidal,
Are you using DatePicker element ?
If so you can use disabledDates method.
Checkout this reference of how to use it.
My suggestion is query the items from your booking collection and check the dates that they were created (_createdDate).
After you do that use disabledDates method.
Good luck!
Feel free to paste your code here.
Roi