# Dynamic Choice Component using a Lookup Column

**URL:** <https://community.glideapps.com/t/dynamic-choice-component-using-a-lookup-column/80434>\
**Category:** Ask for Help\
**Created:** [March 2, 2025, 1:31am UTC](https://community.glideapps.com/t/dynamic-choice-component-using-a-lookup-column/80434 "2025-03-02T01:31:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mary\_Sturgeon](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mary_sturgeon/32/85748_2.png) [@Mary\_Sturgeon](https://community.glideapps.com/u/Mary_Sturgeon)\
**Post date:** [March 2, 2025, 1:31am UTC](https://community.glideapps.com/t/dynamic-choice-component-using-a-lookup-column/80434/1 "2025-03-02T01:31:43Z")

</div>

I’m working on building an app for ordering coffee and various food items. Each item has a category, and I’d like to include options as you add them to your cart that are based on category of the item (i.e. If you are ordering a coffee, you get checkboxes for cream, sugar, etc, but if you are ordering a breakfast sandwich, the checkboxes will show hot sauce)

Following a suggestion I found elsewhere on this forum, I set up a table with all my choices, each one listing its appropriate category, then I created a relation between the category and my category table. Then I created a lookup column to list, for each checkbox the appropriate menu items (i.e. next to cream, you see Americano, Coffee, etc and next to Hot Sauce you see various breakfast sandwiches) I thought I was in the home stretch when I went to filter the choice component by my lookup column, but I can only select ‘is empty’ or ‘is not empty’ - for some reason I can’t check whether a lookup column contains the screen item.

Is there some way to get this filter to work or another approach altogether that might help me get this working? Thanks for any assistance you can provide!

---

<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:** [March 2, 2025, 6:57am UTC](https://community.glideapps.com/t/dynamic-choice-component-using-a-lookup-column/80434/2 "2025-03-02T06:57:18Z")

</div>

Choice components can only be sourced by rows of data. That can be an entire table, a relation, or a query. If you already have a relation, you should be sourcing your choice component using the relation. You cannot source a choice component from a lookup.

---

<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:** [March 2, 2025, 1:19pm UTC](https://community.glideapps.com/t/dynamic-choice-component-using-a-lookup-column/80434/3 "2025-03-02T13:19:45Z")

</div>

I don’t know if this would be interesting for you, but I made an AI Component version of the choice component that allow you to use JSON as source.

> [@Enhanced Choices Component with JSON Source Support](https://community.glideapps.com/t/enhanced-choices-component-with-json-source-support/79986):
>
> New AI-Powered Choice Component with JSON Source Support Get it from the code below or from the AI Component Library by @John_Romano (Please bro anwser me… rofl): Here is the code to paste in the AI component Prompt: \<html\> \<head\> \<link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" as="style"\> \<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"\> \<meta nam…
