# Rating component

**URL:** <https://community.thunkable.com/t/rating-component/866351>\
**Category:** Questions about Thunkable X\
**Created:** [October 1, 2020, 4:42pm UTC](https://community.thunkable.com/t/rating-component/866351 "2020-10-01T16:42:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beadle07](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beadle07/32/71814_2.png) [@beadle07](https://community.thunkable.com/u/beadle07)\
**Post date:** [October 1, 2020, 4:42pm UTC](https://community.thunkable.com/t/rating-component/866351/1 "2020-10-01T16:42:54Z")

</div>

Hello people.

I need some advice in regards to the rating component.

I’ve never used it before but I think it will work well with a project I’m working on at the moment.

Ive used the data list viewer component using a Google sheet spread sheet as the data source.

If I add a ratings column to my sheet and bind that column to my list within my app does the ratings automatically just up date (through my Google sheet) as my users enter their ratings? Or is it a bit more complicated and I’ll have to use some blocks?

Hope that makes sense.

Cheers in advance.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 1, 2020, 5:27pm UTC](https://community.thunkable.com/t/rating-component/866351/2 "2020-10-01T17:27:23Z")

</div>

You would have to update the Google sheet data whenever a rating is changed. That’s not part of the rating component so you’d have to set up the blocks for that.

---

<div class="post-metadata">

**Author:** ![beadle07](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beadle07/32/71814_2.png) [@beadle07](https://community.thunkable.com/u/beadle07)\
**Post date:** [October 1, 2020, 5:48pm UTC](https://community.thunkable.com/t/rating-component/866351/3 "2020-10-01T17:48:59Z")

</div>

I thought that might be the case. I’m going to have around 100 items in my list and every item the user will be able to rate.

I’ll have a play around with the blocks and see if I can figure it out.

Thank yous.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 1, 2020, 6:48pm UTC](https://community.thunkable.com/t/rating-component/866351/4 "2020-10-01T18:48:07Z")

</div>

You’ll want to avoid manually coding every rating update and instead use a loop. This screenshot shows the way I would **not** set this up at the top and then the way I **would** set it up at the bottom:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff7c5ade01f695700cf6a97e3d80b8ab5c752b87.png)

I’m not sure if your can update a spreadsheet that fast in a loop so you may need a Wait block at the end of each iteration of the loop.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 1, 2020, 6:54pm UTC](https://community.thunkable.com/t/rating-component/866351/5 "2020-10-01T18:54:57Z")

</div>

I would just create a list of ratings. The list would be equal in links to the number of items that you need to write. When a rating is clicked I would figure out which rating component was clicked using the all components blocks. I would use the number of that component as the index and in the list of ratings I would change the value found at the index that corresponds to the rating component

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 1, 2020, 8:20pm UTC](https://community.thunkable.com/t/rating-component/866351/6 "2020-10-01T20:20:20Z")

</div>

Sorry, I was a little too hasty with that screenshot. You don’t need a loop at all. Just check to see if the rating value was changed (there’s an event block for that) and then use the Update Value block I showed but instead of the row id, get the rating component #… something like that.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/rating-component/866351/7 "2024-11-08T12:23:39Z")

</div>


