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 / 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,422 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
    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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard