# Recipes from a list of ingredients

**URL:** <https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184>\
**Category:** Ask for Help\
**Created:** [May 24, 2021, 11:15pm UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184 "2021-05-24T23:15:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maak/32/26777_2.png) [@maak](https://community.glideapps.com/u/maak)\
**Post date:** [May 24, 2021, 11:15pm UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/1 "2021-05-24T23:15:09Z")

</div>

So i have a recipe (its a special type of recipe of course) and atrubutes are selected (choice component) to create this recipe from various sheets. However the ingredients is the part i cannot get right as the user has to be able to choose multiple ingredients and add amounts (a simple % number) from a sepatate sheet of ingredients.

I can get this displaying ( i used inline lists) but i cannot work out how to add a row to the recipe-Ingredients sheet from an add recipe funtion. (recipes ate a list)

I tried to create aseparate function to create the recipe-Ingredients list but that needs a button to add a row and i cannot ad such a button within the add function of the recipe list.

Also the amount of ingredients rows added to a recipe needs to be from 1 to any amount.  
Most recipe examples i see have the ingredients just as text, yet that will not work in my situation.  
Any help apreciated.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 25, 2021, 12:45am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/2 "2021-05-25T00:45:38Z")

</div>

My immediate thought is that you could associate ingredients with recipes as a joined list, with each recipe occupying a single row in your table.

Might be worth your time looking at the [Trebuchet](https://community.glideapps.com/t/trebuchet-method/25477) method - it could be useful here.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 25, 2021, 2:07am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/3 "2021-05-25T02:07:24Z")

</div>

Is the issue that you need to add NEW ingredients to an ingredient list sheet WHILE you’re creating a new recipe?

---

<div class="post-metadata">

**Author:** ![maak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maak/32/26777_2.png) [@maak](https://community.glideapps.com/u/maak)\
**Post date:** [May 25, 2021, 2:10am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/4 "2021-05-25T02:10:45Z")

</div>

No. Though the ingredients list maybe separately edited.

I need to choose multiple ingredients to add to the recipe with a numerical amount for each ingredient. And this must be able to be done by the any signed in app user.

---

<div class="post-metadata">

**Author:** ![maak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maak/32/26777_2.png) [@maak](https://community.glideapps.com/u/maak)\
**Post date:** [May 25, 2021, 2:17am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/5 "2021-05-25T02:17:02Z")

</div>

Each recipe occupies a single row in the recipes table but there is an id reference to the recipe-ingredients table as a column in that table.

That draws ingredients from the ingredients table. Each ingredient will be identified by an id as it’s added to a recipe and there will be several new rows in the recipe-ingredients table with the same I’d.

These rows would them be filtered by the I’d into the recipe

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 25, 2021, 2:53am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/6 "2021-05-25T02:53:52Z")

</div>

This would need to be done one ingredient at a time, but if I’m following correctly, it’s possible with either a Glide form or a custom “form” screen using user specific columns. Choice components to select the ingredient, number entry (or choice) to select the amount, submit to recipe-ingredient sheet.

Seems straightforward. Am I missing anything?

---

<div class="post-metadata">

**Author:** ![maak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maak/32/26777_2.png) [@maak](https://community.glideapps.com/u/maak)\
**Post date:** [May 25, 2021, 5:42am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/7 "2021-05-25T05:42:47Z")

</div>

I’m using a glide form. I have a list with cards and for the recipes and have shown the add button. But the form somehow does not allow me to add rows to the recipe-ingredients table which is linked to the recipes table. The recipe is more complex than JUST the recipe-ingredients…

Maybe a custom form page…I’ll try that.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 25, 2021, 11:33am UTC](https://community.glideapps.com/t/recipes-from-a-list-of-ingredients/27184/8 "2021-05-25T11:33:27Z")

</div>

Yeah, add button will write directly to the source sheet of that screen. Instead you want to use a form button which becomes available when you switch your layout to “details”.
