[New Feature] Default value for fields

We just added the ability to have default values for fields. That way, when a new thing is created, if there is no value set for a field, the default one will be used. Note that that only happens at the creation of a thing, and things that are already created won’t be impacted.

You can change these in the data tab.

@emmanuel does it change anything for boolean fields? I mean, prior to this an empty boolean field was interpreted as false. Is it still working this way?

Thanks.

It doesn’t change anything, except if you set the default value to true.

If a "0"value is set, it will be displayed? Right now if is “0” it is displayed in blank.

What happens if you add a new field to the database ? Does this set all the rows to the default ? Does this work in live too @emmanuel ?

This doesn’t appear to work if you manually create a new entry in App Data… I just did that and the default values were not populated. See this video: Loom Message - 20 November 2024 | Loom

Will this be something that will be fixed?

Refresh the page. Any DB updates when in backend will only appear upon refresh