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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Only numbers and comma...
Power Apps
Answered

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

(1) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • YordiVN Profile Picture
    12 on at
    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.
  • Verified answer
    enriqueglopez Profile Picture
    503 Moderator on at
    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
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard