I built a custom form to update records, which uses text fields, input fields, and date pickers.
The update operation is processed with the “Save” button.
If a date field is left blank, the update does not occur, and clicking the save button does nothing. There are cases where there is no date to be entered, I need the form to be saved/updated with or without a date being entered. How do I do this?
I “love” these AI generated replies, which seems to look correct, however, they are misleading. @nigeldude unfortunately this method won’t work, as conditions on Datepicker do not have “is empty” option:
In my opinion this is more like a bug. I’ve examined DB queries in the network log and I can’t even see the PUT query (=update action) launched when the Datepicker is set to empty.
Also unfortunately visibility conditions using dates comparison didn’t work for me as well (probably because Adalo tries to compare some date with null value from the datepicker).
I would advice to submit a ticket for this. As a workaround, you may try creating 2 different screens (with date and without) or have a t/f property responsible for showing/hiding datepicker, and 2 separate submit buttons.
Maybe someone else can suggest better solution, as this issue is quite annoying.