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 / show an error message ...
Power Apps
Unanswered

show an error message conditionally

(0) ShareShare
ReportReport
Posted on by 8

I have a submitter's screen that contains some required fields. When users submit a request with any of the required fields missing, an error message is supposed to show. Recently, I added one more required field and then tested if the error message appears when the field value is missing. I found it not working. Could you take a look and provide your suggestion(s)? 

 

 

 

----------------------------------------------------

If(
IsBlank(DataCardValue58.Text),/*Title*/
Set(Error_Submit, true),
If(
Or(IsBlank(DataCardValue60.Selected) && IsBlank(DataCardValue60.SearchText)),/*Resource Type*/
Set(Error_Submit, true),
If(
IsBlank(DataCardValue61.Selected),/*Format*/
Set(Error_Submit, true),
If(
IsBlank(DataCardValue116.Text),/*Product Link*/
Set(Error_Submit, true),
If(
IsBlank(DataCardValue66.Text),/*Original Requester*/
Set(Error_Submit, true),
If(
IsBlank(DataCardValue67.Text),/*Reason for Request*/
Set(Error_Submit, true),
If(
IsBlank(DataCardValue68.Selected),/*College with Interest*/
Set(Error_Submit, true),
Set(Error_Submit, false);
ClearCollect(PathedItemCollection,
Patch
(...);PowerAppsButtonSubmitter.Run(First(PathedItemCollection).ID);ResetForm(Form_Request);ResetForm(Form_Attachment);Navigate(RequesterSuccessScreen, None)
)
)
)
)
)
)
)

---------------------------------------------------- 

CaptureAppError.JPG
Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @PowerPlatform79 

    You really not need to do any of this as you are using an EditForm.  

    If you have required fields in your form, then you can simply reference the .Valid property of the form.

    So, your formula would become:

       Set(Error_Submit, !yourForm.Valid)

     

    I hope this is helpful for you.

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

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard