Return blank field value as null
-
Is there a way to store and return empty fields as NULL?
Here is what I tried so far:
In the admin panel, under additional field options I checked ‘allow empty value’ and tried setting default value to null.In the template (using my own template) using the field method I tried using raw_display => true
but to no avail.In every case, the date or time fields get returned as either 00:00:00 or 0000-00-00 or another, random date. What I need is that if the user doesn’t enter a specific date or time, it should return NULL.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Return blank field value as null’ is closed to new replies.