Problem with a custom function

Custom Code

Good evening,

I'm a beginner in flutterflow and trying to write a time slot booking app. The "Reserve" collection therefore includes documents which simply contain a date (start of slot), a second date (calculated from the first so that the slot has a duration of one hour) and finally the ID of the person who reserve. So I wrote a custom function which allows, when choosing a time for a date, to check whether this date first exists and then, if it does, to check that the chosen time is not in effect. conflict with an already existing niche. I then integrated this function into an action. I have no errors compiling this function, the program runs normally without errors when I create a new slot but the function does not play a control role. If I create a niche that normally wouldn't be possible, I can still create it. Where is the problem please?

What have you tried so far?

I tried with Flutterflow helpers, by doing research on the internet...

Did you check FlutterFlow's Documentation for this topic?
No
13 replies