I am trying to set date field to allow null values on my insert form but every method I have tried comes back with " cannot insert null values". I simply want to allow users the option to insert a date or not. I am using Sharepoint 2013 and javascript.
I read on https://msdn.microsoft.com/en-us/library/office/jj245356.aspx to use CSOM null - but there is no example and I am very new to sharepoint. I dont want to use min.value || new date(0).
if (DateField == "")
{
DateField = new Date(0); // this is the closest I have got but need this to be empty
oListItem.set_item('DateField ', DateField);
}