Default value for attribute

2
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?
asked
2 answers
8

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.

answered
0

Info can be found here Reference guide & How to

answered