I can add and remove ingredients from the recipe by having the user click on the “Add” or “Remove” button and display these in a table below like so:
However, I would like my RG to show ingredients in a list and only from the recipe selected in the dropdown. So when I choose Banana Bread for example, I would like the output in my RG to be:
Sugar
Flour
Cream
With the title of the recipe displayed to the left.
How can I do this? My data types are quite simple:
Have another field “Recipe name” in “Ingredient” datatype, which holds Recipe name that particular ingredient belongs to. Set Repeating Group ingredients Data source to “Search for Ingredients: Recipe name=Dropdown Recipe’s value”.
Make “Recipe name” type “List of Recipes”. When an ingredient is added, Create new ingredient and add that recipe to the list of recipes of that ingredient. While searching, Search for Ingredients: List of recipes contains Dropdown Recipe’s Recipe