# Add actions to checkbox

**URL:** <https://community.glideapps.com/t/add-actions-to-checkbox/77299>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [October 24, 2024, 1:58pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299 "2024-10-24T13:58:34Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 24, 2024, 1:58pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/1 "2024-10-24T13:58:34Z")

</div>

I am using the checkbox collection to add users to lists using. works great. What I also need to do is capture the current time when the checkbox was selected.

Any help appreciate.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 24, 2024, 2:28pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/2 "2024-10-24T14:28:46Z")

</div>

A check box or checklist itself can’t call an action, but two thoughts.

- Create an IF column that returns two different images or emojis when the boolean is checked or not. Then use a regular list style for your collection and show the image/emoji. Then change the item click action to be a custom action that sets the boolean to true or false based on if it’s checked or not. Something I do here: [Reset Multiple Rows At Once](https://community.glideapps.com/t/reset-multiple-rows-at-once/22211)
- Another idea is to use a custom collection with a custom AI component that is a checkbox with an action.

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 24, 2024, 10:40pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/3 "2024-10-24T22:40:24Z")

</div>

Thanks for the feedback. I am currently using a choice component that displays a relation of the users playlists. my current checkbox list assigns the current item rowId to the rowid of the selected user playlist.

played with the AI. very confusing and I don’t see how to reconfigure what it did. hmmm. Will check the documentation for how to use this component.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 25, 2024, 2:05am UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/4 "2024-10-25T02:05:54Z")

</div>

Yeah, the AI component takes a lot of trial and error, but when I use it I just have a continuous conversation with it. Start with the initial request, and then keep asking for additional changes.

---

<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:** [October 25, 2024, 11:06pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/5 "2024-10-25T23:06:38Z")

</div>

It wouldn’t get it right out of the box most of the times, but these can help:

- Prompt with an image that represents what you want.
- Use Tailwind vocabulary so the vocabulary you use is “closer to home” for the AI to work with.
- Same for CSS.

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 26, 2024, 4:01pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/6 "2024-10-26T16:01:59Z")

</div>

Feeling Dense. When I use the choice component - I am able to select where I write the \*checkbox data. In my case I am saving the rowId of the current item to a different table.

When I use a \*collection, and set column action I don’t see a way to select how to write into another table…

Also - love the way you list the buttons and the title all on one line. I imagine this is custom CSS? (on maker plan so I don’t think I can tweak)

Would it be crazy to request that Glide support custom actions on choice components?

Thanks much

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 26, 2024, 4:56pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/7 "2024-10-26T16:56:23Z")

</div>

> [@Carl\_Johnson](#):
>
> When I use a \*collection, and set column action I don’t see a way to select how to write into another table…

This gets a little tricky. What you need is to somehow create a single relation in the collection source table that links to the row you are trying to update. Then a set column action can set a value through the relation. How that works depends on a few things be generally you would store the RowID of the row you are editing somewhere, then use a single value column to bring it into choice source table, and then create the relation from that. I’m not doing anything like that in my sample app. I’m not really using it like a choice component. Moreso like a checklist style collection.

> [@Carl\_Johnson](#):
>
> Also - love the way you list the buttons and the title all on one line. I imagine this is custom CSS? (on maker plan so I don’t think I can tweak)

There is no CSS involved in my example. There are no buttons. Although I am using a classic app (really need to rewrite this as a new app template so it can be copied), it’s just a standard list and I’m just displaying an emoji as an image.

> [@Carl\_Johnson](#):
>
> Would it be crazy to request that Glide support custom actions on choice components?

Not at all. This is something that is sorely needed. There’s already at least one request out there.

> [@Action on choice component](https://community.glideapps.com/t/action-on-choice-component/29167):
>
> Would be nice to have an action attached to a choice component. we a choice is selected, there is a set column action that internally updates the column with the value, would be great if we could create a custom action to add to this single action for example: show notification, set column in a relation etc…

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 26, 2024, 5:55pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/8 "2024-10-26T17:55:49Z")

</div>

> [@Jeff\_Hager](#):
>
> generally you would store the RowID of the row you are editing somewhere,

That makes perfect sense. Dumb question how do i store the rowId of the screen I’m looking at in a temp field? what action triggers - hey store the rowId of the current screen?

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 26, 2024, 5:59pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/9 "2024-10-26T17:59:37Z")

</div>

on a related note - something I’ve been thinking that would might be helpful - Does the Glide community do any kind of “office hours” with experts or code reviews with each other? I would love to share my screen while I’m building stuff and have others chime in with suggestions/tips/ etc.

Now that I have made many many mistakes I have a better sense of things that noobs likely miss and would be happy to help other noobs in this way

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 26, 2024, 6:01pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/10 "2024-10-26T18:01:33Z")

</div>

Usually you can store that when opening the screen. If you get there from a collection for example, you can adjust the action to first set a value (maybe into the user profile), followed by showing the screen.

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 26, 2024, 6:30pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/11 "2024-10-26T18:30:50Z")

</div>

Last q of day - you are so helpful. I have a table with rows that are categoried. simple. I have created a query column from users that shows just cat1, or cat2, or cat3 for the user. cool.

I have added the collection 3 times to a screen. first collection using query cat1, second using cat 2, etc.

works great. BUT - when I click into the item the details screen, Glide forces the source to use the same relation column no matter what query is used. I update the collection to use the desired query source but this gets overwritten. so the data for cat 1 for example is listed on ALL three query views. grrrrr.

ideas?

---

<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:** [October 26, 2024, 11:37pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/12 "2024-10-26T23:37:08Z")

</div>

Sounds like it’s the default option for details view. You’re trying to view a details view of an item, but depends on what “query collection item” was clicked, you wanted to display different things?

On entry to the details view, add a step to set the value that determines the “query collection” that was clicked, to a user-specific column.

Drive the visibility of components based on that value.

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 27, 2024, 12:28am UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/13 "2024-10-27T00:28:02Z")

</div>

> [@ThinhDinh](#):
>
> You’re trying to view a details view of an item, but depends on what “query collection item” was clicked, you wanted to display different things?

Correct. When its one type of list I display X propterties in the collection. Y props when its the Y query.

> [@ThinhDinh](#):
>
> On entry to the details view, add a step to set the value that determines the “query collection” that was clicked, to a user-specific column.

Will give this a shot. thanks so much

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 27, 2024, 3:53am UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/14 "2024-10-27T03:53:06Z")

</div>

setting a query as a collection source view then having that selected view overwritten by a “default view” strikes as odd and maybe even a bug. But hey I’m sure there’s a reason for this behavior but it doesn’t make sense to me.

I will make a video of the behavior and share it with the Glide support peeps

---

<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:** [October 27, 2024, 11:02pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/15 "2024-10-27T23:02:43Z")

</div>

> [@Carl\_Johnson](#):
>
> then having that selected view overwritten by a “default view” strikes as odd and maybe even a bug

I’m not sure what you mean here. Can you explain more?

---

<div class="post-metadata">

**Author:** ![Carl\_Johnson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carl_johnson/32/75656_2.png) [@Carl\_Johnson](https://community.glideapps.com/u/Carl_Johnson)\
**Post date:** [October 29, 2024, 1:41pm UTC](https://community.glideapps.com/t/add-actions-to-checkbox/77299/16 "2024-10-29T13:41:53Z")

</div>

thanks for the follow up. I used your workaround and this is working. thanks.
