Make number input appear blank

Hello,

Would it be somehow possible to make number input fields to appear blank by default instead of showing 0?

When showing 0, it might look like something has been entered already, while it hasn't. When showing blank, it's more obvious that it is missing a value.
Also when a field from a db record is null, it is being shown as 0 and when updated, it will be updated with 0 instead of null. Not a big issue, but the data is inconsistent then.

I've already tried to set the default value to null or empty, but that doesn't work.
I'd prefer not to go with a text field and convert it to a number as I have to apply validation to each field.

Any solution for this?

Hey @mbruijnpff,

There is an "Allow null" option in the validation settings:

This will let your numberInput be null

image

Ah, thanks, that's what I need. Didn't look at the validation settings.

1 Like