# Typed input field, data type number: empty

**URL:** <https://discourse.nodered.org/t/typed-input-field-data-type-number-empty/27895>\
**Category:** Core Development\
**Created:** [6 June 2020 13:55 UTC](https://discourse.nodered.org/t/typed-input-field-data-type-number-empty/27895 "2020-06-06T13:55:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hklages](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hklages/32/23899_2.png) [@hklages](https://discourse.nodered.org/u/hklages)\
**Post date:** [6 June 2020 13:55 UTC](https://discourse.nodered.org/t/typed-input-field-data-type-number-empty/27895/1 "2020-06-06T13:55:49Z")

</div>

In an inject node (and any other node with typed input) I am able to select "number" as type and leave the field blank. I would expect that this is not valid but instead the node is saved.

Why (saved, no error)?

Wouldn't it been better to throw an error or provide 0 as initial value - similar to boolean where true is the initial value. It seems that 0 is saved but not show in the dialog field.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 August 2020 13:55 UTC](https://discourse.nodered.org/t/typed-input-field-data-type-number-empty/27895/2 "2020-08-05T13:55:56Z")

</div>

Closed on 5 August 2020 13:55 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
