# Popup with numeric entry wont focus with a value

**URL:** <https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 5, 2026, 10:54am UTC](https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665 "2026-08-05T10:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jul](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jul](https://forum.inductiveautomation.com/u/Jul)\
**Post date:** [August 5, 2026, 10:54am UTC](https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665/1 "2026-08-05T10:54:25Z")

</div>

I've made a popup in perspective. In the popup i'm presenting a value and want to change the value using my keyboard without first selecting the numeric entry field. So the numeric entry needs to have the focus so i can change the value.

On the numeric entry field im running a script in the System Events :onStartup

def runAction(self):  
waarde = system.tag.read(self.view.params.Tagpath).value  
self.props.value = waarde  
self.focus()

This results in a numeric entry field with the focus and i can change the value without selecting the numeric entry field, but without the initial value

def runAction(self):  
waarde = system.tag.read(self.view.params.Tagpath).value  
self.props.value = waarde

This results in a numeric entry field with the initial value but without the focus

How can i combine these two ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 5, 2026, 11:27am UTC](https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665/2 "2026-08-05T11:27:15Z")

</div>

Tip: Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![Cose\_Peter1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cose_peter1/32/79174_2.png) [@Cose\_Peter1](https://forum.inductiveautomation.com/u/Cose_Peter1)\
**Post date:** [August 5, 2026, 11:30am UTC](https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665/3 "2026-08-05T11:30:04Z")

</div>

Instead of injecting the tag values from a script you might want to use a property or tag binding.

---

<div class="post-metadata">

**Author:** ![Jul](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jul](https://forum.inductiveautomation.com/u/Jul)\
**Post date:** [August 5, 2026, 12:14pm UTC](https://forum.inductiveautomation.com/t/popup-with-numeric-entry-wont-focus-with-a-value/116665/4 "2026-08-05T12:14:45Z")

</div>

hi, thank you for your input.  
I've tried that without positive result.
