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 / Rating Control: Not re...
Power Apps
Answered

Rating Control: Not required but failing validation (as a required field)

(0) ShareShare
ReportReport
Posted on by 10

Good afternoon!

 

Question:

How can I allow submission of a form without a Rating Control being filled?

 

Background:
I am currently trying to develop a feedback form with an input control for Name, Comment, and then a Rating control that indicates a level of support. This feedback form is meant to provide running commentary to a related gallery and it's content. As such the rating control is not meant to provide a rating with every submitted comment (if there are multiple) but as an option.

 

However, even though the rating control data card is marked as Required = false, and the underlying SharePoint list column is also not required, I am experiencing an error that marks the rating as a Required Field when I attempt to submit the form. 

 

I have set the DisplayMode of the submit button to "If(CommentTab.Valid, DisplayMode.Edit, DisplayMode.Disabled)" which tells me that the form is not valid but I cannot identify why. Please note that if I select a star rating, the form will be validated.

 

The following field properties had been modified:

Default = Coalesce(Parent.Default, 0)

 

Pictures below:

Picture3.pngPicture4.png

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @JKells ,

    One thought here - it is expecting a number, so if (as I assume) you are writing to number field, make the Default value in the data source on creation of that field zero. 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • JKells Profile Picture
    10 on at

    Hmmm originally I had entered the default as '0' but it led to the original problem - after doing some searching on the issue I changed it to Default = Coalesce(Parent.Default, 0) 

     

    The parent default is 0 in SharePoint as well. Still no luck 😞

  • Verified answer
    WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @JKells ,
    Coalesce is also no help here as it looks for blank value (and there will never be any) - you are better served with just (add the actual field name). You can back-populate all the existing blank values with zero if necessary.

    ThisItem.FieldName

    This should also get rid of the error also as the field will always have a value in it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @JKells ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • JKells Profile Picture
    10 on at

    Hi Warren,

     

    Thank you so much for your help here. That did indeed solve the required problem, however, it introduced a new challenge - and I'm unsure if I can have it both ways here.

     

    The goal is for a user to comment with the option to add a rating. By updating the default, it allows a submission without a rating, but defaults the rating to 0 (which impacts the average). So now I have two problems on opposite ends of the spectrum:

    - Require a rating (which biases the average rating if someone comments multiple times)
    - Do not require a rating (which lowers the average as repeated comments without a rating are marked as zero)

     

    Ideally, an unentered rating would both be not required, and would not count towards the average as a null value.

  • Verified answer
    WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @JKells ,

    When averaging the rating, just filter the list to exclude the zeroes.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • JKells Profile Picture
    10 on at

    Thank you Warren!

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard