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 / Is there a way to forc...
Power Apps
Answered

Is there a way to force a TextInput box in a gallery to only allow Numeric values

(0) ShareShare
ReportReport
Posted on by

Hi, I've got a gallery with a single TextInput box per item, which I have the user fill with data. Is there a way to ensure, or only allow the entry to be a numeric value?

 

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    on at

    You can set the 'Format' property of the TextInput control to TextFormat.Number. That will make the text input only allow numeric values to be entered.

  • Community Power Platform Member Profile Picture
    on at

    thankyou, not sure how I missed that!

  • Community Power Platform Member Profile Picture
    on at

    so did a bit more testing....  Looks like this will only allow whole numbers, where ideally, I'd like to be able to have the user enter decimals.

     

    Would I have to switch it back to Text, and do some verification on teh OnChange parameter?

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