In my setup I have an ICS calendar that I get the unavailable dates from with a custom PHP function. The end result is a simple array with date strings like “2025-06-30”.
The Date field setup is this
When I use the “Dates To Disable” with dynamic data, I get different result based on how I supply it in the field.
["2025-06-29"]
works.['2025-06-29']
doesn’t work."2025-06-29"
and'2025-06-29'
(without brackets) doesn’t work.{echo:my_custom_function}
doesn’t work.var_dump
of the function returnsarray(3) { [0]=> string(10) "2025-06-27" [1]=> string(10) "2025-06-28" [2]=> string(10) "2025-06-29" }
so it looks fine to me.
There is a console error if the custom function is used:
So what/how should be passed here?
PS It would be nice to have a documentation for the Date field since you’ve extended it way beyond the default Bricks one. Currently, there is none.