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 / 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 Microsoft Employee

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:
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee 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
    Microsoft Employee on at

    thankyou, not sure how I missed that!

  • Community Power Platform Member Profile Picture
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard