# Documentation for input type="number"

**URL:** <https://discourse.nodered.org/t/documentation-for-input-type-number/42838>\
**Category:** Developing Nodes\
**Created:** [18 March 2021 18:02 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838 "2021-03-18T18:02:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [18 March 2021 18:02 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/1 "2021-03-18T18:02:43Z")

</div>

I have been trying to improve (i.e., "idiot-proof") the edit dialogs of some contributed nodes, and it would help to have more information about the `input type="number"` tag. As far as I have found, the official [documentation](https://nodered.org/docs/creating-nodes/edit-dialog) refers only to the `text`, `checkbox`, and `select` types. A number of core and contributed nodes (including my own) use the `number` type more or less successfully, but the documentation refers to using `text` for "string/number properties". Does that mean that the use of `number` is discouraged?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 March 2021 19:38 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/2 "2021-03-18T19:38:18Z")

</div>

It isn't discouraged... Just wasn't really on my radar when I wrote those docs.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [18 March 2021 20:58 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/3 "2021-03-18T20:58:21Z")

</div>

Thanks, Nick. I really don't expect you to write documentation just now. I'm mainly interested in writing a few validation functions for this widget, but its behavior seems a bit odd at times. If it's not too much trouble, can you point me to the source for it?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 March 2021 21:01 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/4 "2021-03-18T21:01:33Z")

</div>

> [@drmibell](#):
>
> can you point me to the source for it?

`<input type="number">` is an HTML5 standard element - [\<input type="number"\> - HTML: HyperText Markup Language | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number)

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [18 March 2021 21:08 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/5 "2021-03-18T21:08:13Z")

</div>

Well, that shows how long I've been at this. Does that mean it can be used with the other attributes (like `max` and `min`) in the edit dialog?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 March 2021 21:08 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/6 "2021-03-18T21:08:52Z")

</div>

Yes, you can.

---

<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:** [17 May 2021 21:09 UTC](https://discourse.nodered.org/t/documentation-for-input-type-number/42838/7 "2021-05-17T21:09:11Z")

</div>

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