# UI Text Input Focus

**URL:** <https://discourse.nodered.org/t/ui-text-input-focus/8053>\
**Category:** Dashboard\
**Created:** [16 February 2019 17:27 UTC](https://discourse.nodered.org/t/ui-text-input-focus/8053 "2019-02-16T17:27:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [7 October 2019 20:19 UTC](https://discourse.nodered.org/t/ui-text-input-focus/8053/4 "2019-10-07T20:19:03Z")

</div>

Have you not considered using a ui\_template node, create your own text inputs with fixed IDs.

This thread I commented on was similar (though I got no feedback so no idea if it was suitable)...

> [@In need of some help - Modal text input with cancel](https://discourse.nodered.org/t/in-need-of-some-help-modal-text-input-with-cancel/15125/12):
>
> You could simply add a bit script so that when the input box loses focus, you simply set focus once more. \<script type="text/javascript"\> var element= document.getElementById('return\_value'); element.focus(); element.onblur= function() { setTimeout(function() { element.focus(); }, 0); }; \</script\>

---

_[View the full topic](https://discourse.nodered.org/t/ui-text-input-focus/8053)._
