Services Plugins FAQs

Air Date/Time Picker block date ranges

Does anyone know how to block out a list of date ranges in the Air Date/Time Picker?
Is there a way to extract the individual days into a list?

In the screenshot below the Date picker’s parent group is referencing a Resource which is linked to an Employee. I want to block out all resources belonging to that Employee.

image

Hello @rory.mulligan,
Thanks for reaching out!

I’m afraid, it is not possible to use “Date range” because the “Blocked dates” value is a list of dates. If we use the date range type it will throw an error and unfortunately, the plugin will not be able to understand the value of the blocked date. Screenshot by Lightshot

Therefore, I would like to suggest you create a new field for these blocked dates which will be a list of “dates” instead of a date range. Screenshot by Lightshot

Also, you can save these blocked dates in your database as a list using the “selected range as a list” state. Here is an example: Screenshot by Lightshot

Hope it helps! In case I can assist you with any additional information regarding your setup, please let me know.

Best regards,
Gulce

1 Like