Remove default 0 in numeric fields

0
Is there a way to remove the default value showing in UI for the numeric fields and just leave them as blank?
asked
2 answers
1

1. You can use a microflow which creates the object of the entity. You dont have to commit that

2. There try setting the value as empty instead of 0

3. Pass that object as page parameter to the page you want to access

answered
5

In your domain model you can see that Integer attributes on your entities automatically receive a default value of 0.

You can remove this value so that it does not fill the attribute with 0 whenever a new object is created.

But make sure that you validate if a number has been filled in before committing your object. Otherwise if you are going to use this number somewhere in a microflow for another action you will get a nullpointer exception or something similar.

 

answered