Default value for attribute

The default value for an attribute of an entity has been set to 0. The issue that I have is that when I edit this entity in a data view I am able leave the value blank for the attribute and save a null value for the attribute in the database. Application is built on version 5.15.1 Shouldn't it always default to a default value of zero if no value is specified?
2 answers

No, the default value is what it defaults to when it is created. If someone goes in and clears it out then commits, the value is now empty. You'll want to put validation on that attribute to prevent it.


Info can be found here Reference guide & How to