Skip to main content

Notifications

Community site session details

Community site session details

Session Id : H2gt1j5VVthdt62Hcg7qh1
Power Apps - Building Power Apps
Suggested answer

How to Update NumberInput Value on Keypress Instead of FocusOut?

Like (1) ShareShare
ReportReport
Posted on 13 Mar 2025 09:28:33 by
Currently, it seems that the NumberInput value in PowerApps only updates on FocusOut, rather than on every keypress. This causes delays in scenarios where real-time updates are needed, such as live calculations or dynamic UI changes. Is there a way to make NumberInput update on each keypress instead? If not, is there a planned update to support this behavior?

Looking forward to any workarounds or official insights on this!
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    36,197 Super User 2025 Season 1 on 16 Mar 2025 at 06:07:31
    How to Update NumberInput Value on Keypress Instead of FocusOut?
     
    So unfortunately what @MSR@08012015 said its not exactly correct.
     
    Due to changes in the controls, the normal (old) Text Input does not automatically trigger anymore on KeyPress.
     
    However, he is absolutely correct that the Number Input (as you already mentioned) does not support this at all, but you are seemingly wanting to use the Modern Controls.
     
    So the proper way to resolve it is to us the modern Text Input.
    Then Change the output trigger to KeyPress, like this
     
    This does allow the OnChange to trigger immediately. However, you cannot change this one to Numeric, so as the previous poster suggested, what you have to do is either something like
     
    Set(Variable, Value(Self.Value))
     
    Or
    UpdateContext({ Variable: Self.Value });
     
    Or as mentioned change the Format and Numeric value in the other controls / Collection etc
     
    So you can do what you want with the Modern Text Input.
     
    Also, no idea when or if they will add this to the Numeric Input, although it is weird the lack of parity between controls.
  • MSR@08012015 Profile Picture
    547 on 13 Mar 2025 at 09:39:42
    How to Update NumberInput Value on Keypress Instead of FocusOut?
    Hi,
     
    Currently, Power Apps doesn't natively support live updates on each keystroke for NumberInput.

    Since TextInput updates on every keypress, you can use it instead of NumberInput and then convert the value to a number dynamically.

    • Add a TextInput (e.g., txtNumberInput).
    • Set its OnChange property to:  Set(varNumber, Value(txtNumberInput.Text))
    • If needed, format the value inside a Label or another control: Text(varNumber, "[$-en-US]#,##0")
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,442 Most Valuable Professional

Leaderboard