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 / Modern text input - va...
Power Apps
Answered

Modern text input - validation short numbers (with decimal)

(0) ShareShare
ReportReport
Posted on by 151

Hi, 

How can I validate text input for numbers with period  (or dot). 

In old control id "Format" option in modern I cant find them. 

Categories:
I have the same question (0)
  • Sunil Pashikanti Profile Picture
    736 Moderator on at

    Hi @knyklu,

     

    I found a post on the Power Platform Community forum that might help you. In the post, a user asked how to validate text input for numbers with period in PowerApps.

     

    You can also try the IsMatch function and a regular expression. Here’s an example formula to validate text input for numbers with period:

    IsMatch(TextInput1.Text, "^\\d+(\\.\\d+)?$") 

    This formula will return true if the text input contains a number with a period and false otherwise.

     

    Thanks,

    @SunilPashikanti 

  • knyklu Profile Picture
    151 on at

    Hi @SunilPashikanti 

    Thanks, but this allways return false

    BTW, 

  • Verified answer
    Sunil Pashikanti Profile Picture
    736 Moderator on at

    Hi @knyklu ,

     

    Sorry for that, can you please try the below code:

     

    IsMatch(TextInput1.Text, "^\d+(\.\d+)?$")

     

    This code works for below validations:

    SunilPashikanti_0-1701025297943.png

    SunilPashikanti_1-1701025353967.png

     

    Thanks,

    @SunilPashikanti 

  • knyklu Profile Picture
    151 on at

    Thanks, works perfect.

    BTW, I wish MS Access is dying. In it everything was so easy.

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