Adding points when click on a group of stars

I am using a point system in my app. When a person rates something 5 stars they earn an extra point. I can’t figure out how to do this.

The way I started this was by having a group. If you click on the group it sets the value of a modifier to 1. If it is less than 5 stars then the modifier is 0. The problem is that when I click the star the modifier doesn’t seem to be changing. It just shows a blank instead of the number.

Any ideas on how to do this or a better way?

So it is working, but it doesn’t seem to recognize the entire group only empty spacing where there are no elements under the group.

Got it! Instead of click, I used when input is changed!!

This topic was automatically closed after 70 days. New replies are no longer allowed.