Unable to create a function that turns form values from empty strings into nulls

Hey there @Alen_Ramic and welcome to the forum.

So, the way I usually approach this is to manipulate the changesetObject within my insert query, i do something like:

{{ ({ ...form8.data, delivery: date1.value === "" ? null : date1.value }) }}

In the same you can define all of your date values.