# Requesting Focus

**URL:** <https://forum.inductiveautomation.com/t/requesting-focus/5475>\
**Category:** General Discussion\
**Created:** [November 26, 2012, 6:32pm UTC](https://forum.inductiveautomation.com/t/requesting-focus/5475 "2012-11-26T18:32:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehill100](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mikehill100](https://forum.inductiveautomation.com/u/mikehill100)\
**Post date:** [November 26, 2012, 6:32pm UTC](https://forum.inductiveautomation.com/t/requesting-focus/5475/1 "2012-11-26T18:32:06Z")

</div>

I would like to send the focus to a particular text box when the window opens, but this box happens to be inside a template, so I don’t think I can use .requestFocusInWindow()… or can I?

Any thoughts welcome,

Mike

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 26, 2012, 6:36pm UTC](https://forum.inductiveautomation.com/t/requesting-focus/5475/2 "2012-11-26T18:36:03Z")

</div>

No, but you can set the value of a template parameter that runs a propertyChange script inside of the template.
