# Button Function: Pulling Data Randomly, User Specific

**URL:** <https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599>\
**Category:** Ask for Help\
**Created:** [June 18, 2025, 10:25pm UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599 "2025-06-18T22:25:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nacre\_studio](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nacre\_studio](https://community.glideapps.com/u/nacre_studio)\
**Post date:** [June 18, 2025, 10:25pm UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/1 "2025-06-18T22:25:48Z")

</div>

I have a home/selection screen that includes 3 buttons (Reflect, Sense, and Draw). The intention is that when you click Sense, for example, it will pulls from Activity Table data with the tag “Sense” at random and provides the user an activity that focuses on that subject.

I have a Users Table where I’m trying to create the random activity values and a means of tracking completion (so activities are not repeated and you can track progress). I’ve also created an Activity Table which provides each Activities data.

**Current issue:**  
When I click a button, nothing happens. Activity data does not populate the Users Table cells and a new screen with random activity content does not pull up. I’m very new to this program so it is VERY likely I’m simply approaching the intended functions incorrectly.

Here are some images of the User Table

 ![users01](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/c/ac89b2a105f925e508ee6c131cf0f2f1d50665a3.jpeg)  
 ![users02](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/9/b9dbe2fc2429f557dfe3c7c53a65e03e3b479926.jpeg)  
 ![users03](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/8/d8d9ceadb311e48807317df2cc524bba70022d37.jpeg)

And a view of the Activities Table

 ![activities02](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/a/7a5c03533c50315c755da1b8447542530bad804b.jpeg)

And an example of a Sense button workflow. I’m noticing “Run” is not an option (grey). However, when I remove the condition that Current Studio Type is Sense, Run re-appears. I’m thinking Current Studio Type currently has no value, so when a condition requires it to match a value it is not going to function.

 ![SenseWorkflow](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/ad7c322f5ac47910010b9b6d0efddf557faecdde.jpeg)

Any help or suggestion would be appreciated!

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [June 18, 2025, 11:38pm UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/2 "2025-06-18T23:38:25Z")

</div>

Can you show me the button configuration?

---

<div class="post-metadata">

**Author:** ![nacre\_studio](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nacre\_studio](https://community.glideapps.com/u/nacre_studio)\
**Post date:** [June 19, 2025, 12:18am UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/3 "2025-06-19T00:18:03Z")

</div>

Hi Maxime -

The buttons look like this.

 ![buttons](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f63309f76d52e95b749f87a8e0b6823536861b25.jpeg)

---

<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:** [June 19, 2025, 1:27am UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/4 "2025-06-19T01:27:56Z")

</div>

Do you have actual data so far and have tried scenarios where the relations and the single value column are filled.

---

<div class="post-metadata">

**Author:** ![nacre\_studio](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nacre\_studio](https://community.glideapps.com/u/nacre_studio)\
**Post date:** [June 23, 2025, 5:47pm UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/5 "2025-06-23T17:47:41Z")

</div>

Hi @ThinhDinh and @MaximeBaker - thanks for viewing.

I do have actual data and while trying to describe my issues I’ve managed to solve some things.

here is where I’m at now:  
I can click buttons and they take me to a random activity (detail screen) filtered by activity type that is selected. I’m happy to make it this far!  
Next I would like to populate the detail screen with all the other content associated with the activity randomly selected. For example, I have specific images and text that go along with every activity.

Current User Table:

 ![user table](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/2/e2e11392f71e6aaf1a61cc42653a8af44c8ba521.jpeg)

Current Activity Table:

 ![activity table](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/7/37af0868e5698e75803438e63acf5bf48848cd05.jpeg)

Workflow Example:

 ![workflow example](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/7/171f128bd09a64bcb4d49c5089aceabb6205ba7b.jpeg)

This is the column that randomly selects from the filtered list based on which activity type was selected:

 ![activity selection](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/1/e15274a2563cbd2fadc48bdf3c7b592986d3ad63.jpeg)

And lastly, when i click a button, this is the detailed screen that shows up.

 ![activity selected](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/3/934fadb8b02028f825e1d14c56dd166829552b18.jpeg)

When i try to add another component on this screen I dont see options for activity-specific content (text or images). I am guessing i need to populate those via new user-table columns and maybe new actions in each workflow? Any help on best practices would be appreciated.

Ultimately when a user completes an activity they can mark it as complete. I would like it so when a random activity is selected it will NOT select an activity that has already been done. Additionally I want to incorporate a progress bar for each activity type.

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:** [June 23, 2025, 11:43pm UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/6 "2025-06-23T23:43:35Z")

</div>

> [@nacre\_studio](#):
>
> When i try to add another component on this screen I dont see options for activity-specific content (text or images). I am guessing i need to populate those via new user-table columns and maybe new actions in each workflow? Any help on best practices would be appreciated.

I assume you mean the activity details screen here?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/7/07b52f91091cbeebdccf11e1cc39976ce8694316.jpeg)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/6/36daf53a4b412e7d86e0b5e37d3b8a7f578ce82e.jpeg)

For this part, you should:

- Go back to the User table, configuring: Activity ID should be a single value \> whole row \> random from the list of Matching Activities, it will return some sort like a relation.
- Add a lookup column on top of the single value to return the actual Activity ID (if you still need that).
- In your workflow, instead of show detail screen for “this item”, show it for the single value column.
- You will have access to all columns from the Activity table to continue building.

---

<div class="post-metadata">

**Author:** ![nacre\_studio](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@nacre\_studio](https://community.glideapps.com/u/nacre_studio)\
**Post date:** [June 24, 2025, 12:35am UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/7 "2025-06-24T00:35:36Z")

</div>

i just tried it and it works! thank you again.

---

<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:** [July 1, 2025, 12:35am UTC](https://community.glideapps.com/t/button-function-pulling-data-randomly-user-specific/82599/8 "2025-07-01T00:35:53Z")

</div>

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