[GIS] How to set NULL as default value for a date field in QGIS 2.4

datefields-attributesqgisqgis-2.4

In QGIS 2.4, i am unable to set the default value as NULL if i have not updated any value on date fields. Its automatically taking the current system date. I am expecting to set the default values(NULL) for date fields in properties of layer, since that default values should be displayed while capturing the new feature itself. It may be edited if required. Please refer the attached screen shots.

enter image description here
enter image description here

Best Answer

Open up the layer's Attribute Table > Toggle editing mode. Select the fields you want changed then open the Field Calculator. Check the Only update selected features box at the top.

Assuming you already made a column for the Date, check the Update existing field box and select the required field. Then in the expression box, enter NULL.

enter image description here

Related Question