# typedInput - Missing after choosing other type

**URL:** <https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890>\
**Category:** General\
**Created:** [23 February 2022 17:48 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890 "2022-02-23T17:48:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jayson](https://discourse.nodered.org/u/jayson)\
**Post date:** [23 February 2022 17:48 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890/1 "2022-02-23T17:48:56Z")

</div>

I added a node with input with typedInput. Initially, the type dropdown is showing but upon changing the type, it will be gone in the UI.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 February 2022 21:02 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890/2 "2022-02-23T21:02:51Z")

</div>

Hi. You will need to provide code snippets and screenshots for us to be able to assist.

---

<div class="post-metadata">

**Author:** ![jayson](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jayson](https://discourse.nodered.org/u/jayson)\
**Post date:** [24 February 2022 14:38 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890/3 "2022-02-24T14:38:25Z")

</div>

Here is the code

```auto

  <div class="form-row set-input-size is-batch-code">
    <label for="node-input-Item"><i class="fa fa-th"></i> Item</label>
    <input type="text" id="node-input-Item" placeholder="Item goes here...">
    <input type="hidden" id="node-input-Item-type">
  </div>

```

```auto
   // Script
      $('#node-input-Item').typedInput({
        default: node.objItemType || 'str',
        types: [
          'msg', 'flow', 'global', 'str', 'num', 'bool', 
          'json', 'bin', 're', 'date'
        ],
        typeField: '#node-input-Item-type'
      })

```

initial output  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/852d018d1a9a24df60273c68c91747bc6273f4f8.png)

after changing the type (changed to number)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/f/0f0de830c931eb27f4a54355184b526ed1ac3951.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 February 2022 14:48 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890/4 "2022-02-24T14:48:08Z")

</div>

> [@jayson](#):
>
> `input`

That HTML and JS, by itself, looks fine.

Do you have a repository where this code is so i can see where abouts the JS runs (in relation to the rest of the code)? For example, are you raising events or rebuilding the typedInput when you change type?

---

<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:** [18 April 2022 15:20 UTC](https://discourse.nodered.org/t/typedinput-missing-after-choosing-other-type/58890/5 "2022-04-18T15:20:31Z")

</div>

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