[SOLVED] Default value to NULL
Posted: Wed Sep 23, 2009 6:02 pm
Hi,
I have a field in my database I want to be set to NULL on a new data. I also don't want to display this field in the edit form. This field is of type INTEGER(1).
I tried to put ignore = 1 into fields.ini file, but it doesn't seem to work. If I use widget:type = hidden, it doesn't work because the value is then set to 0 instead of NULL.
How can I do what I want?
Charles
I have a field in my database I want to be set to NULL on a new data. I also don't want to display this field in the edit form. This field is of type INTEGER(1).
I tried to put ignore = 1 into fields.ini file, but it doesn't seem to work. If I use widget:type = hidden, it doesn't work because the value is then set to 0 instead of NULL.
How can I do what I want?
Charles