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 / Powerapps - error mess...
Power Apps
Unanswered

Powerapps - error message handling

(0) ShareShare
ReportReport
Posted on by 32

Hi, how can i add error message with the condition below:

 

1) Upon clicking "+" icon,

  • If Person field did not selected, display error message (border color = red)
  • If Text Box field is blank, display error message (border color = red) Upon clicking Submit button,

2) Upon clicking Submit button,

  • If Data Table is blank (no record), display error message (border color = red)

JSJS_0-1668578775198.png

Thank you!!

Categories:
I have the same question (0)
  • AnthonyD Profile Picture
    559 on at

    @JS-JS 

    On the + icon. Set the following formula:
    If(!Isblank(Textinput.Text) And !IsBlank(comboBox.selectedItems), <Do your patch to datatable>;Set(varValidateAddInput,false),Set(varValidateAddInput,true))

    Then on your text input controls bordercolor add the following formula If(Isblank(Self.Text) And varValidateAddInput,Red,Gray)

    On comboBox/dropdown input controls add the following formula If(Isblank(Self.SelecectedItems) And varValidateAddInput,Red,Gray)

    On your submit button you could just do. If(IsEmpty(<Datasource from datatable>),Set(varValidateSubmit,true),<Patch changes>;Set(varValidateSubmit,false))

    on the error message beneath datatable set its visibility to:
    varValidateSubmit

    Do the same thing for the bordercolor of datatable as you did for input controls with varValidateSubmit variable
    If this helped you resolved your answer please mark this answers as a solution.

    Best Regards,

    Anthony

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard