web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modern number control
Power Apps
Answered

Modern number control

(1) ShareShare
ReportReport
Posted on by 110
I'm using a modern number input control in one of my apps and noticed that if I change the number value of the control by entering in the number directly in it and then click on the save button, that the save button doesn't use the entered value. However the classic text control works differently. If I was to manually enter a number and click save, it uses the number that's entered. I created a test app with both controls on it and a save button for each. The save has a simple patch command that saves the data to the same list with one column each for the modern input and classic input.
 
The inputs are configured to show the first row of the list data as default values:
 
 
 
When I change the modern number control to 200 and click save modern:
 
When I change the classic number to 200 and click save classic:
 
 
 
I also notice that if I enter the number and hit the tab key to exit out of it or use the number increase/decrease controls on the modern control then it saves correctly. It just doesn't work if I manually enter and click save.
 
Anyone else notice this behaviour? Is there a way to make the modern control work the same way as classic?
 
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,505 Super User 2026 Season 1 on at
    This is known behaviour, your users must tab out of the number control to record the new number. There is no way to change the behaviour to how it worked in classic.
  • DJ_Jamba Profile Picture
    2,837 Moderator on at
    You'll find that if you click on the screen background before clicking on the save button, it will save just fine.
    This is because the control doesn't actually update the value until after the control is no longer focussed.

    To get around this, I set the focus on another control (in the OnSelect property of the button) before getting the Value in the number input e.g.
    SetFocus(TextInput4); //any other control in your screen
    SetFocus(NumberInput1); //set focus back to the number input control
    UpdateContext(
        {
            newNum1: NumberInput1.Value
        }
    );
    UpdateContext({numToPatch: newNum1});
     
    To test, throw a label on the screen and put numToPatch in the Text property
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    Unfortunately, the Modern Number control does not allow you to change it to KeyPress mode, only the Modern Text Input does. 
     
    If this helps resolve your issue, please Mark as such and maybe a like :-)
     
    Cheers,
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 430

#2
timl Profile Picture

timl 318 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard