Skip to main content

Notifications

Community site session details

Community site session details

Session Id : w9nonMHfzhy3TttJOlTf5F
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,112 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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started
Loading complete