Notifications
Announcements
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.
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
Hi @SunilPashikanti
Thanks, but this allways return false
BTW,
Hi @knyklu ,
Sorry for that, can you please try the below code:
IsMatch(TextInput1.Text, "^\d+(\.\d+)?$")
This code works for below validations:
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268