> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobyco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Show each winner their reward screen

> Set up the gameplay of a game with several rewards in the Gameplay Editor, so each winner sees the reward they actually won.

When a game has several rewards, each winner should see the reward they won. This page helps you set up the gameplay for that, in the Gameplay Editor. Skip it if your game has one reward, or if it's a lottery game. [Show each winner the right reward](https://help.lobyco.com/business-documentation/activities/games/design-a-game#show-each-winner-the-right-reward) explains why.

> [!NOTE]
>
> Before you start, save the game in its campaign with all its rewards, so that every reward has an ID.

## Get the reward IDs

1. In **Campaigns**, open the game in its campaign.
2. Open its **Reward settings** tab.
3. Note down the **Id** of each reward, from the **Id** column of its table, and which reward it belongs to.

Bonus and custom rewards get their ID when you save the game. If you add a reward later, save the game again to get its ID.

Then open the gameplay in the Gameplay Editor. [Edit a gameplay in the Gameplay Editor](https://help.lobyco.com/business-documentation/activities/games/design-a-game/edit-a-gameplay.md) explains how.

## Add the reward ID to the Registration page

The gameplay picks the right Win page from a hidden field on the Registration page. Add that field first.

1. In the Game Navigator, on the **Flow pages** tab, select the padlock beside Registration to unlock it.
2. Select the Registration element on the page.
3. On the **Settings** tab of the Game menu, select **Modify form**.

![The Gameplay Editor on the Flow pages tab, with the Registration page opened out into Row, Column and a Registration element, which is selected and boxed in red. The phone preview shows an E-mail field filled in with a dummy address. The Game menu is on its Settings tab, beside Style, Decryption and Advanced. Under Registration fields is a table with the columns Type, Name, Required and Visible: E-mail, required and visible, then two Hidden fields, win and rewardid, both visible. The Modify form button under the table is boxed in red. Under Registration settings, Disable cookies, Autosubmit registration if all information is pre-filled and Disable autocomplete are ticked.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-18-registration-modify-form.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=73d1d76148a1c9f5147f945cb25b39f3)

*Modify form, on the Registration element*

4. Select **Add field**, and fill in the new row.

| Column | Enter |
| - | - |
| **Type** | **Hidden** |
| **Name** | `rewardId` |
| **Value / Default** | `#rewardId#` |

5. Select **Save**, and close the form.

Leave the hidden `win` field that's already in the form. The prize settings below use it too.

![The Form Builder dialog of the Gameplay Editor, with the columns Type, Name, Placeholder, Value / Default, Required and Visible. The first row is an E-mail field with a dummy address as its value, required and visible. The second is a Hidden field named win with the value #win#. The third, boxed in red, is a Hidden field named rewardId with the value #rewardId#. Add field is under the rows, with a note that an empty placeholder uses the field name, and Save is at the bottom.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-19-registration-rewardid-field.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=2e98094ba1e0ed23139a0a07467c38e4)

*The hidden rewardId field in the Form Builder*

> [!WARNING]
>
> Type `rewardId` and `#rewardId#` exactly as shown, with a capital I. Upper and lower case count.

## Choose what the Game page shows

This step is for luck games only. For a skill or knowledge game, go on to [Make a Win page for each reward](#make-a-win-page-for-each-reward).

A luck game's Game page can show the prizes in one of two ways.

| Game page | What the winner sees | Set it up |
| - | - | - |
| Only win or lose | The game only shows that they've won. The Win page after it shows the prize. | Quicker. Go on to [Make a Win page for each reward](#make-a-win-page-for-each-reward). |
| Every prize | The game lands on the prize they won, such as a wheel that stops on it. | Add a bulk prize for each reward first, as the next step explains. |

![A Wheel of fortune game on a phone, under a Play and Win header. It says Maybe this is your lucky day! Spin the wheel to win a prize. The wheel's eight segments alternate between the word win and a sad face, and a Spin the wheel button is at the bottom.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-21-wheel-shows-win-or-lose.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=d0d8f67f94d903a14fff5ccc52e3d500)

*A wheel that only shows win or lose*

![A Wheel of fortune game on a phone, under a Play and Win header. It says Maybe this is your lucky day! Spin the wheel to win a prize. The wheel's segments carry the prizes Candy, Marshmallows and Spin again, each beside the Lobyco symbol, with plain segments between them, and a Spin the wheel button is at the bottom.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-20-wheel-shows-every-prize.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=e1f3097928e647374f0693b78c9da9c7)

*A wheel that shows every prize*

## Add a bulk prize for each reward

Do this for a luck game whose Game page shows every prize. A bulk prize is how the gameplay knows which picture to land on for each reward.

1. Select **Prize settings**, the trophy icon in the bar at the bottom of the editor.

![The Gameplay Editor on the Flow pages tab, which lists Registration (do not change) with a padlock, then Intro, Game, Win and Lose. The phone preview shows a chocolate bar intro with Yay! and a Start game button. The Game menu shows the General layout settings: Base color and Background color #482215, Text color and Button text color #ffffff, Background image, Logo, Font type, Enable scroll indicator and Focus state. At the bottom, beside Device preview, a trophy icon is boxed in red, with the tooltip Prize settings.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-22-prize-settings-button.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=d50557c3aa91a5faba9ab0c14fd23562)

*Prize settings, the trophy icon in the bar at the bottom of the editor*

The **Bulk prizes** list opens. A gameplay made from a template for one reward has one bulk prize already. You can have up to 25.

![The Prize settings dialog of the Gameplay Editor, on its Bulk prizes list. Add bulk prize is boxed in red, beside a greyed-out Export prizes. A yellow note says There is a maximum of 25 different bulk prizes. The table has the columns Image, Name, Prizes, Type and Distribution, and one row: a placeholder image, the name unlimited, Unlimited prizes, Type Instant win (slot 1) and Distribution 100%, with Pause, Modify, a greyed-out Delete and a menu. Under it, Total number of winners is 16.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-23-bulk-prizes-list.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=0f43369fe43a8157ed89b3696c3d14a5)

*The Bulk prizes list, with one bulk prize*

2. Select **Add bulk prize**.
3. Enter a **Bulk prize name**, such as the name of the reward, and select **Next**.

![The first step of adding a bulk prize in Prize settings, with the steps Prize Name, Prize Settings, and Confirm and Save across the top and Prize Name active. Bulk prize name is filled in with Prize 2, and a Next button is below it.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-24-bulk-prize-name.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=903b0180c14abe92ad958fb4447ebb6a)

*Name the bulk prize*

4. Set the prize settings, and select **Next**.

| Setting | Choose |
| - | - |
| **Winner logic** | **Instant Win (registration-based)** |
| **Number of prizes** | **Unlimited** |
| **Winning image** | The reward's picture. You add the pictures in **Game settings**. To open it, select **Game** in the bar at the bottom of the editor, or press Ctrl+G. |

![The Prize Settings step of adding a bulk prize, with Prize Name ticked. Winner logic, noted as Instant Win requires registration before the game, is set to Instant Win (registration-based) rather than Game-based. Number of prizes, noted as If you are using unique prize codes, you must use limited prizes, is set to Unlimited rather than Limited. Under Winning image, described as the image associated with winning this prize, Image 1 shows a chocolate bar and Image 2, which is selected, shows a broken chocolate bar. Next is at the bottom.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-25-bulk-prize-winner-logic.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=a0364b2a03376814b9810c4decb3bc3b)

*Winner logic, number of prizes and the winning image*

5. Select **Save bulk prize**. The bulk prize's full settings open.

![The Confirm and Save step of adding a bulk prize, with Prize Name and Prize Settings ticked. It says Save to create your prize and continue editing the settings, above a Save bulk prize button.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-26-save-bulk-prize.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=65dc2ae4e750d917dc0dbdcfca324d41)

*Save bulk prize*

6. Under **Basic information**, check the **Bulk prize name**. You can add a **Bulk prize description**, a **Bulk prize value** and a **Bulk prize image** too. To show the name on a Win page, type `#bulk_prize_name#` in a text block there. A text block's **Content** tab lists the other tags under **Replacement tags**.

![The Basic information panel of a bulk prize. Bulk prize name is Prize 2. Bulk prize description is an empty text editor with bold, italic, underline, a Paragraph style list, colour, alignment, link, image, undo, redo, list and code buttons. Bulk prize value, noted as can be written in any format, is empty. Bulk prize image has a Select media button and an empty field.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-27-bulk-prize-basic-information.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=beaa2cc3c14face5af7f8b4f2b3c141f)

*The bulk prize's name, description, value and image*

7. Set the win conditions. Lobyco decides who wins and which reward they get, from the game's settings in its campaign. These conditions let the gameplay follow that choice, so the bulk prize goes to every winner of its reward.

| Setting | Choose |
| - | - |
| **Winner logic** | **Instant Win (registration-based)** |
| **Number of times this prize can be won by a player** | **Unlimited** |
| **Exclude earlier winners of any prize** | Unticked |
| **Winner percentage** | **100%** |
| **Form field(s)**, under **Advanced prize filters** | Ticked |
| **Operator** | **And** |
| The first filter | **Field** `win`, **Condition** `=`, **Value** `true` |
| The second filter | **Field** `rewardId`, **Condition** `=`, **Value** the reward's ID |

If the filter rows aren't there, select **Add field** for each one.

![The win conditions of a bulk prize. Winner logic is Instant Win (registration-based). Number of times this prize can be won by a player is Unlimited. Exclude earlier winners of any prize, described as a player cannot win this prize if they have already won any other prize, is unticked. Number of prizes is greyed out on Unlimited. Winner percentage is 100%, and Unlimited prize code is empty. Under Advanced prize filters, described as filters that control who is eligible to win this bulk prize, Form field(s) is ticked and Operator is And. Two filter rows follow, each with Field, Condition, Value and Delete: win = true, and rewardId = 120. Add field is below them.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-28-bulk-prize-win-conditions.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=091866d394dc9def10aa89e27f7a76b4)

*The win conditions, with the win and rewardId filters*

8. Under **Winning image**, check that the reward's picture is selected.

![The lower part of a bulk prize's settings: Add field, then unticked Limit date range and Limit time range, each noted as a range during which the prize is available, not the same as time-based distribution. Under Winning image, Image 1 shows a chocolate bar and Image 2, which is selected, shows a broken chocolate bar.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-29-bulk-prize-winning-image.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=13afb87b2469a89421f113af71fb9511)

*The winning image of the bulk prize*

Add a bulk prize like this for every reward in the game.

## Make a Win page for each reward

1. In the Game Navigator, on the **Flow pages** tab, right-click the Win page and select **Duplicate**.
2. Select the copy, and change its **Name** on the **Basic** tab to the reward's name.
3. Change the copy so it shows that reward. [Change an element in the Game menu](https://help.lobyco.com/business-documentation/activities/games/design-a-game/edit-a-gameplay.md#change-an-element-in-the-game-menu) explains how.

Repeat until there's a Win page for every reward.

Winners of a custom reward don't get it in the app. On their Win page, say how they get it, such as by post, and how long it takes.

![The Gameplay Editor on the Flow pages tab, which lists Registration, Intro with movie, Intro, Game, Win page Cola, Win page Sprite, Win page (pool prize), Lose page and Win page (tshirt). Win page Cola is selected and boxed in red, and its right-click menu is open: Make global, Section settings Ctrl + S, Game settings Ctrl + G, Layout settings Ctrl + L, Move up, Move down, Copy Ctrl + C, Duplicate Ctrl + D, which is boxed in red, and Delete. The phone preview shows Congratulations! You won a Coca Cola 330ml with an Accept prize button. The Game menu is on its Basic tab, with Name Win page Cola, then Layout settings: Content width Full width, Columns Gap No spacing, Type Window height and Content position Top.](https://mintcdn.com/lobyco-4c9fb3ad/zK1fhyLl5SS6JoLU/images/gameplay-editor-30-duplicate-win-page.png?fit=max\&auto=format\&n=zK1fhyLl5SS6JoLU\&q=85\&s=4ae7b299e960b3805469aa5faff00175)

*Duplicate a Win page, one for each reward*

## Show each Win page only to that reward's winners

Each Win page needs a visibility condition with its reward's ID. Otherwise every winner sees the same Win page.

1. Select the Win page for a reward in the Game Navigator.
2. Open the **Advanced** tab in the Game menu.
3. Under **Visibility condition**, set **Group** to **Winners**, if it isn't set already.
4. Tick **Form field(s)**.
5. Set **Field** to `rewardId`, **Condition** to `=` and **Value** to the reward's ID.

Do the same on every Win page, each with its own reward's ID.

## Show extra pages to some winners

You can give any page a visibility condition like this one. For example, add a page after the Win page for winners of a custom reward, with how their prize is delivered. Set **Group** to **Winners**, tick **Form field(s)**, and set **Field** to `rewardId`, **Condition** to `=` and **Value** to that reward's ID.

## Refresh the gameplay

Go back to **Gameplay design** and select **Refresh**, so customers see your changes straight away. [Design a game](https://help.lobyco.com/business-documentation/activities/games/design-a-game#design-the-gameplay-in-the-gameplay-editor) explains how.

To check it worked, play the live game until you've won each reward once. Every win shows the Win page for its own reward. [Show each winner the right reward](https://help.lobyco.com/business-documentation/activities/games/design-a-game#show-each-winner-the-right-reward) says what that test uses up. To test before customers play, limit the game to test customers. [Test before customers play](https://help.lobyco.com/business-documentation/activities/games/create-a-game.md#test-before-customers-play) explains how.

## Troubleshooting

> [accordion] Why does every winner see the same Win page?
>
> Check the hidden field on the Registration page. Its **Name** has to be `rewardId` and its **Value / Default** `#rewardId#`, with a capital I in both. Then check that every Win page has its own visibility condition, set to **Winners** and its own reward's ID.

## Related

* [Design a game](https://help.lobyco.com/business-documentation/activities/games/design-a-game) — where each reward's ID comes from, and how to refresh the gameplay.
* [Create a game](https://help.lobyco.com/business-documentation/activities/games/create-a-game.md) — choose the game's rewards in its campaign.
* [Edit a gameplay in the Gameplay Editor](https://help.lobyco.com/business-documentation/activities/games/design-a-game/edit-a-gameplay.md) — find your way around the editor's pages and menus.
* [Luck game settings](https://help.lobyco.com/business-documentation/activities/games/types-of-games/luck-game-settings.md) — the Game settings of each luck game, such as a wheel.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.