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 / Make Rating Mandatory
Power Apps
Answered

Make Rating Mandatory

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I have a star rating system from 1-5, when we refresh the page the ratings should clear and be set to the default of 0. However we do not want anyone to skip those questions and output a rating of 0 so would like the button to move to the next page to be disabled when the rating is 0 (rating not filled in). 

 

Any help would be great. 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @Anonymous

     

    Assuming that your button calls the Navigate function, you can wrap this in a conditional statement to prevent the navigation when the rating value is 0. The formula would look something like this:

     

    If(Rating1.Value <> 0, 
     Navigate(YourOtherScreen, ScreenTransition.Cover), 
     false
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply. 

     

    The button actually patches to my SP list rather than Navigate. 

     

    Can I use 

    If(Rating1.Value <> 0,

     part of the code to prevent the patch? 

     

  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Yes, you can use that syntax to prevent the patch.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi would the code be like this: 

     

    If(Rating1.Value<>0, Patch(
     SPList,Defaults(SpList),
     {Columnname:Dropdownname.Selected.Value}
     )),false

    Not sure if this is right?

     

  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    I think your closing bracket is in the wrong place, but assuming that your rating control is called Rating1, then this code should work.

     

    If(Rating1.Value<>0, 
    Patch(SPList,Defaults(SpList), {Columnname: Dropdownname.Selected.Value} ),
    false
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks, got it working so that it won't navigate or patch when the rating is 0. 

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard