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 / Error message in power...
Power Apps
Answered

Error message in power apps

(0) ShareShare
ReportReport
Posted on by 122

Hi,

 

I would like to add an error message when wrong input is given in any field. In which property I should enter this message.

Categories:
I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,424 Most Valuable Professional on at

    Hi @hiti,

     

    The below guide does a good job showing how you can validate a field when it leaves focus (OnChange)

     

    https://matthewdevaney.com/data-validation-for-power-apps-forms/

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @hiti :

    Thanks for @ChrisPiasecki 's suggestion.I want to use a few sentences to summarize what I want to add.

    1\To achieve this function, two steps are required: verification and error reporting

    2\To verify that the user's input is correct, you can set the OnChange property of this control. (When the user input is completed, the OnChange property will be triggered)

    3\To pop up an error message, the easiest way is to use Notify function in Power Apps  function.

    I've made a test for your reference:

    I assume that if the user enters characters other than numbers, the application will report an error:

    Set the text input control's OnChang Property to:

     

    If(!IsMatch(Self.Text,"\d*"),Notify("You can only enter numbers!"))

     

    12.gif

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 502

#2
Vish WR Profile Picture

Vish WR 454

#3
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

Last 30 days Overall leaderboard