# Customise ingredients for food delivery app

**URL:** https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248
**Category:** Ask for Help
**Created:** [January 16, 2022, 12:00am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248 "2022-01-16T00:00:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Christo\_Ponce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christo_ponce/32/37475_2.png) [@Christo\_Ponce](https://community.glideapps.com/u/Christo_Ponce)
#### Post date: [January 16, 2022, 12:00am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/1 "2022-01-16T00:00:12Z")

</div>

Hello! I’m developing a food delivery app and have been looking for ways to implement the functionality for adding certain ingredients or topping depending on the category of the item, ie:

**(for these categories of ingredients, you can choose every item )**

- Protein, you have: bacon, double burger
- Extra ingredient you have: pickles, cheese, onion rings.

**(for these categories, you can only choose from one of the ingredients)**

- Bread you have: regular, brioche or sesame seeds
- Sauce/Dressing: chipotle, guacamole, special sauce

**Problem 1:**

So you have the type of ingredients that can be multiple selected or the ingredients where you can choose only one from that category, and thats another problem that i haven’t resolved yet, how to show and store the “choose only one from this category” in the related item if the client can upload many of this categories of new ingredients

 ![Captura de pantalla (12)_LI](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/9/89a6ad8c59749bd692704e15bc02759ea5e805b8.jpeg)  
I have two components that show the ingredients of the chosen categories but cant figure the solution yet

**Problem 2:**  
In this image we can see that the category chosen is “protein” where the user can choose between bacon and double meat, when choosing both this goes to select multiple choice component.  
The issue goes when you select another category, for example, extra ingredient, and you select it, this erases the cell where the ingredients are and writes just the last one selected from that category.

In other words, you can choose ingredients just from one category, if you choose one from another category the cell just picks the ingredients from the last category you choose ingredients from

---

<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: [January 16, 2022, 12:20am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/2 "2022-01-16T00:20:34Z")

</div>

So, you want users to upload food items to the app. Each item can be of one category, and depending on the category you want to allow users to upload toppings for that food item?

I’m not clear on this part.

> [@Christo\_Ponce](#):
>
> - Bread you have: regular, brioche or sesame seeds
> - Sauce/Dressing: chipotle, guacamole, special sauce

So when an item is of bread category you want them to choose what type of bread that is, and which sauce/dressing as a topping as well?

It does sound like we need some clarification on your data structure here. Can you show us some screenshots?

---

<div class="post-metadata">

### Author: ![Christo\_Ponce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christo_ponce/32/37475_2.png) [@Christo\_Ponce](https://community.glideapps.com/u/Christo_Ponce)
#### Post date: [January 16, 2022, 3:07am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/3 "2022-01-16T03:07:48Z")

</div>

User chose the ingredients that they want in their item. The admin of the app can upload the categories of topping, dressing or extra ingredients with the price for each one of these ingredients.

When choosing from the multiple choice component, ingredients are added to a column, but when choosing ingredients from another category the cell with the stored values is re-written with the newly chose ingredient from the another category instead of been added to the cell with the list of ingredients added from another category

 ![Captura de pantalla (13)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/6/66256c9cd218e385841686429c1ffbcef6c30f73.png)

Here we can see that we select two ingredients from the category “proteína” that add to the cell “producto armado” and then if we select another ingredient in this example “queso derretido” from the “lacteo” category, instead of the ingrediente added as: “tocino extra, carne extra, queso derretido” it just rewrites as “queso derretido”

---

<div class="post-metadata">

### Author: ![Christo\_Ponce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christo_ponce/32/37475_2.png) [@Christo\_Ponce](https://community.glideapps.com/u/Christo_Ponce)
#### Post date: [January 16, 2022, 3:08am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/4 "2022-01-16T03:08:27Z")

</div>

![Captura de pantalla (19)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/1/8142ee0bcc85166ab6b4506fd86c3582c3d1b1bb.png)

---

<div class="post-metadata">

### Author: ![Christo\_Ponce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christo_ponce/32/37475_2.png) [@Christo\_Ponce](https://community.glideapps.com/u/Christo_Ponce)
#### Post date: [January 16, 2022, 3:09am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/5 "2022-01-16T03:09:01Z")

</div>

![Captura de pantalla (17)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/4/d448c2447c6354a86095d682753cfeb76c198093.png)

---

<div class="post-metadata">

### Author: ![Christo\_Ponce](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/christo_ponce/32/37475_2.png) [@Christo\_Ponce](https://community.glideapps.com/u/Christo_Ponce)
#### Post date: [January 16, 2022, 3:09am UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/6 "2022-01-16T03:09:37Z")

</div>

![Captura de pantalla (21)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/6/b6d8ca246067b55465567af6b9552e3420f7e134.png)

---

<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: [January 16, 2022, 12:51pm UTC](https://community.glideapps.com/t/customise-ingredients-for-food-delivery-app/37248/7 "2022-01-16T12:51:37Z")

</div>

> [@Christo\_Ponce](#):
>
> when choosing ingredients from another category the cell with the stored values is re-written with the newly chose ingredient from the another category instead of been added to the cell with the list of ingredients added from another category

It does sound like the default behaviour of a multiple choice component in Glide, so what I would suggest, without knowing if it actually fits with your data structure, is having multiple input fields for each category. That only works if you know in advance how many categories you can have though.
