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 / Textinput allows negat...
Power Apps
Suggested Answer

Textinput allows negative numbers and % sign in number format

(0) ShareShare
ReportReport
Posted on by 603

I am using textinput in powerapp form. I noticed it allows negative number despite choosing as number format in the type.

May i know how to avoid negative numbers?

It also allows % symbol if i key in with some number. For eg: if i enter10% it allows which should not be the case. May i know how to avoid?

 
Categories:
  • Suggested answer
    SebS Profile Picture
    4,882 Super User 2026 Season 2 on at
    Hi,
     
    In OnChange Property place code:
     
    If(
        !IsNumeric(Self.Value) || Value(Self.Value) < 0 || Find("%", Self.Value) > 0,
     
        Notify("Please enter a valid positive number without symbols.", NotificationType.Error)
    )
     
    That Should sort it out, Now if You use new Modern control TextInput You can also add this to your ValidationState propery
    If(
        !IsNumeric(Self.Value) || Value(Self.Value) < 0 || Find(
            "%",
            Self.Value
        ) > 0,
        "Error",
        "None"
    )

    Also change TriggerOutput property to
    'TextInputCanvas.TriggerOutput'.Delayed

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard