# Help with prediction game app

**URL:** https://community.glideapps.com/t/help-with-prediction-game-app/79765
**Category:** Ask for Help
**Created:** [February 4, 2025, 10:06am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765 "2025-02-04T10:06:12Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Darbi\_Moore](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darbi_moore/32/83033_2.png) [@Darbi\_Moore](https://community.glideapps.com/u/Darbi_Moore)
#### Post date: [February 4, 2025, 10:06am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/1 "2025-02-04T10:06:12Z")

</div>

i am trying to make a prediction/betting app for my school, but I am really having trouble figuring out how to award people money once the winner has been confirmed. i want it to be so that when an admin confirms the winner and submits the form, a workflow happens where it checks for users with the winner in their prediction (activity) and if so they get double to points they bet (increase number in column).  
If someone can tell me how to get a remix link or something, I can share that.  
help would be so appreciated. 🙌

---

<div class="post-metadata">

### Author: ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)
#### Post date: [February 4, 2025, 10:30am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/2 "2025-02-04T10:30:36Z")

</div>

Sounds like the solution could be:

1. Math column calculating extra points for the user.
2. Query checking if the user’s prediction was correct.
3. Workflow looping through all users and writing additional points to the basic users’ points column if they met the criteria.

---

<div class="post-metadata">

### Author: ![Darbi\_Moore](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darbi_moore/32/83033_2.png) [@Darbi\_Moore](https://community.glideapps.com/u/Darbi_Moore)
#### Post date: [February 4, 2025, 10:42am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/3 "2025-02-04T10:42:06Z")

</div>

do you know if there is any existing threads/topics with a demo link/video explaining a similar thing?

---

<div class="post-metadata">

### Author: ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)
#### Post date: [February 4, 2025, 10:51am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/4 "2025-02-04T10:51:52Z")

</div>

Not sure if a similar app has been built or if there’s a video of it. But there are tons of good materials on Glide Query (or you could simply use if-then-else form what it sounds like).

And for bulk row editing there’s Glide Workflows and Glide Call API.

---

<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: [February 5, 2025, 2:40am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/5 "2025-02-05T02:40:28Z")

</div>

I’m not sure if you need a form to trigger something. Can’t you just have a math column to calculate the winnings?

 ![CleanShot 2025-02-05 at 09.39.32](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/c/0c445bd08d7f898f1bccd1b978fa48349a1e069f.png)

 ![CleanShot 2025-02-05 at 09.40.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/0/f0ae9648214844bde9b6d8fe9eee4e6e8f13e633.png)

 ![CleanShot 2025-02-05 at 09.40.16](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f53fda588c70580898e960bac6bf50bf9d73b150.png)

---

<div class="post-metadata">

### Author: ![Darbi\_Moore](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darbi_moore/32/83033_2.png) [@Darbi\_Moore](https://community.glideapps.com/u/Darbi_Moore)
#### Post date: [February 5, 2025, 8:16am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/6 "2025-02-05T08:16:20Z")

</div>

that is pretty much it but the thing I am having trouble with is actually giving the user the points. so that when an admin on the admin page of the app submits a form (

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/e/ae0882a400ee0a1792307e8fdc959d95e8b0353f.png))  
it - via a workflow - does the following:

1. updates the event winner to be the winner (for eg, Red)
2. checks for users with the correct prediction and awards the points return (that I can figure out with a math column - points bet x 2)

---

<div class="post-metadata">

### Author: ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)
#### Post date: [February 5, 2025, 9:34am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/7 "2025-02-05T09:34:54Z")

</div>

Bulk row editing is an advanced functionality in Glide, you’ll need to use either Call API or Workflows with a webhook trigger. Do you have them on your plan?

---

<div class="post-metadata">

### Author: ![Darbi\_Moore](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darbi_moore/32/83033_2.png) [@Darbi\_Moore](https://community.glideapps.com/u/Darbi_Moore)
#### Post date: [February 5, 2025, 9:52am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/8 "2025-02-05T09:52:40Z")

</div>

im on the free teir, so i think not, but I’m sure there must be a way to do it without paying for a plan

---

<div class="post-metadata">

### Author: ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)
#### Post date: [February 5, 2025, 10:18am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/9 "2025-02-05T10:18:58Z")

</div>

Now, as I’m thinking of it, you’re right, there’s is an option. But each user will be adding the points themselves. Here’s how:

A dedicated single-row table with user-specific column for placing bets.

Admin will be setting the actual score and controlling the game phases - eg. closing the bet and revealing the score.

When the score is revealed, each user will be able to collect their additional points.

Open the image in a new tab to see how I did this.

![betting](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/4/f41f7eb83da5c49a398531729ab65391864b485e.gif)

---

<div class="post-metadata">

### Author: ![Darbi\_Moore](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darbi_moore/32/83033_2.png) [@Darbi\_Moore](https://community.glideapps.com/u/Darbi_Moore)
#### Post date: [February 5, 2025, 9:39pm UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/10 "2025-02-05T21:39:20Z")

</div>

that is almost exactly what i was looking for! thank you so much!

---

<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: [February 6, 2025, 1:21am UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/11 "2025-02-06T01:21:03Z")

</div>

> [@Darbi\_Moore](#):
>
> that is pretty much it but the thing I am having trouble with is actually giving the user the points.

I guess I’m not getting this flow. If your form confirms a winner, shouldn’t the calculated columns give the users the points?

You can do a rollup on top of the math column to give the user their points.

---

<div class="post-metadata">

### Author: ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)
#### Post date: [February 6, 2025, 1:50pm UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/12 "2025-02-06T13:50:38Z")

</div>

Sure, anytime!

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [February 13, 2025, 1:50pm UTC](https://community.glideapps.com/t/help-with-prediction-game-app/79765/13 "2025-02-13T13:50:53Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
