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 / Blank field error chec...
Power Apps
Answered

Blank field error checking in PowerApps

(0) ShareShare
ReportReport
Posted on by

Good day,

I have a Canvas app where people need to rate on various categories (using the rating stars feature in PowerApps).  All the ratings are mandatory and I would like to show an error message if a rating category is omitted.  However, I cannot get this to work.  The Patch function works 100%, but the "IsBlank" and Error notification message do not work.  Your assistance would be appreciated.  Here is my code for the app:

 

//No Rating Error
UpdateContext({varNoRatingError:
If(IsBlank(Quality1);true;false)});;
//Error Message
If(varNoRatingError;Notify("Please rate all the categories"; NotificationType.Error);

Patch(SubmissionRatings; Defaults(SubmissionRatings); {Date: DatePicker1.SelectedDate; Topic: Dropdown4.SelectedText.Value; Committee: Dropdown2.SelectedText.Value; Assessor: AssessedbyTxt.Text; Quality1: Quality1.Value; BusinessCase2: BusinessCase2.Value; RiskMitigation3: RiskMitigation3.Value; Fitness4: Fitness4.Value; QualitySupport5: QualitySupport5.Value; TeamPerformance6: TeamPerform6.Value; OverallRating: Value(OverallAveTotalLbl.Text); Comments: CommentsTxt.Text; Quality1ValueLbl: Value(Quality1ValueLbl.Text); BusinessCase2ValueLbl: Value(BusinessCase2ValueLbl.Text); RiskMitigation3ValueLbl: Value(RiskMitigation3ValueLbl.Text); Fitness4ValueLbl: Value(Fitness4ValueLbl.Text); QualitySupport5ValueLbl: Value(QualitySupport5ValueLbl.Text); TeamPerformance6ValueLbl: Value(TeamPerformance6ValueLbl.Text)}))

 

janineb_0-1636097442494.png

 

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

    Thank you!  Working perfectly!  Much appreciated

  • Verified answer
    PTBBSolutions Profile Picture
    691 on at

    Hi @janineb ,

     

    The rating control always has a value so it will never be blank. Instead, try 

    UpdateContext({varNoRatingError:
    If(Quality1.Value = 0;true;false)})

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
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard