# Add points to user when form is submitted

**URL:** <https://community.glideapps.com/t/add-points-to-user-when-form-is-submitted/40618>\
**Category:** Ask for Help\
**Created:** [April 11, 2022, 4:07pm UTC](https://community.glideapps.com/t/add-points-to-user-when-form-is-submitted/40618 "2022-04-11T16:07:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandru\_Giuseppe\_I](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandru_giuseppe_i/32/40893_2.png) [@Alexandru\_Giuseppe\_I](https://community.glideapps.com/u/Alexandru_Giuseppe_I)\
**Post date:** [April 11, 2022, 4:07pm UTC](https://community.glideapps.com/t/add-points-to-user-when-form-is-submitted/40618/1 "2022-04-11T16:07:16Z")

</div>

Hi there,  
I have two tables, “Things” and “Users”, so whenever new content is submitted to “Things” I want to increment a number in the “Users” table, and that number within “Users” table is a number row called “Points”.  
Is this possible to create in Glide?

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [April 11, 2022, 4:28pm UTC](https://community.glideapps.com/t/add-points-to-user-when-form-is-submitted/40618/2 "2022-04-11T16:28:58Z")

</div>

Hi Alexandru,

You need a single relation to update current user row. You can create a Template column on your Things Table and then fill the template column clicking the three dots with User Profile\>Email column.

And then add a relation column and select the the template column you created and select Users table \> email. And don’t tick the multiple checkbox. It needs to be Single.

And in your form add the Increasement action and select the single relation and select the number column that created in the Users collection for the column.

👇

> [@rocket Set Column Action: Alter a DIFFERENT SHEET'S VALUES!](https://community.glideapps.com/t/set-column-action-alter-a-different-sheets-values/18342):
>
> heart_eyesNot only can you use the new “Set Column” action to edit a value within your sheet via button press, but now you can manipulate values in OTHER SHEETS as long as there’s a relation! This is SUPER powerful. In my demonstration below, I take an inline list of four items and turn them into buttons that can be used to track habits in a DIFFERENT SHEET that’s associated to the currently signed in user!

Thank you

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 12, 2022, 12:01am UTC](https://community.glideapps.com/t/add-points-to-user-when-form-is-submitted/40618/3 "2022-04-12T00:01:33Z")

</div>

I assume you’re giving users points for any new submissions? A direct way is to use a relation from the user table to the things table using the user’s email/ID, then use a rollup column to count the submissions they have made. Each will count as a point.

A major downside is if they delete a post a point will be subtracted. It depends on how you want it to be. @Dilon_Perera 's suggestion works with the scenario that you don’t want deleted posts to subtract from the user’s points.
