Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Only numbers and comma's allowed as input in a modern textinput control.

Like (1) ShareShare
ReportReport
Posted on 23 Oct 2024 10:11:33 by 86

Hello,

I have a modern form in PowerApps (frmTijd) that contains several modern text input fields. I want to restrict these fields to allow only numbers. Since I live in Europe, the decimal separator should be a comma, not a point.

I've been struggling with this all afternoon and would appreciate any help.

Regards,
Steven

Categories:
  • Verified answer
    mmbr1606 Profile Picture
    12,286 Super User 2025 Season 1 on 23 Oct 2024 at 12:14:58
    Only numbers and comma's allowed as input in a modern textinput control.
    please do yourself a treat and stop using modern controls as of now.
     
    they are more buggy than helpful and there are no real solutions to most of the problems
     
     
    cheeers
  • Verified answer
    enriqueglopez Profile Picture
    484 Super User 2025 Season 1 on 23 Oct 2024 at 11:03:51
    Only numbers and comma's allowed as input in a modern textinput control.
    To save you time that I've already invested in this, I'm afraid this is not possible at this moment in Power Apps Canvas. 

    I've faced the same problem as you, the 'workaround' I made was showing a label with the input value formatted in real time, just for the User Experience.
     
    I've tried updating the value property when the OnChange property is triggered, but didn't work. Also, you will find different format (commas or dots) depending on the browser language of the user that is using the app, which make this even harder.

    I strongly recommend to you to use my approach.

    If you found this helpful, please, mark my answer as solution.
    Have a nice day
  • YordiVN Profile Picture
    12 on 23 Oct 2024 at 10:44:16
    Only numbers and comma's allowed as input in a modern textinput control.
    Dear Steven,
     
    By default the modern form will choose a text input field.
    You can manually replace the modern text input field by a modern number input field and change the properties accordingly.
     
    You can also change the content language to "nl-be", unfortunately I noticed that the modern controls doesn't replace the dot with a comma yet.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 106 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 73

#3
stampcoin Profile Picture

stampcoin 52

Overall leaderboard
Loading started
Loading started