Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

adding value list fields

Featured Replies

Hi,

I have a table which is used to create recipes. In the creation of the recipe I need to select each ingredient from the Products table. Each ingredient then needs the amount put in.

I can get the field to properly list the ingredients, but how do I set-up the table so I can add as many ingredients as possible? The number of fields for ingredients will be different with each recipe. Also, how do I link the amount field to the ingredient field when amount is an edit box and ingredients is a value list?

I need to do it this way because I will also be creating a Meal Planner table which will select recipes for each meal on a specific date. I will also have a Grocery List which will will aggregate all of the products and their amounts from the Meal Planner.

My thought was to create a script to each a new value list field for each new ingredient but I am unsure of how to get started.

Thanks.

You don't make what tables you have clear, but I'll see if I can help.

You need at least three tables.

1) Recipes table

2) Ingredients table

AND

3) RecipesIngredients table

to support a many-to-many join.

Recipes will have the fields: recipe_id, RecipeName

Ingredients will have the fields: ingredient_id, IngredientName

RecipesIngrdients will have the fields: recipeingredient_id (optional field, but recommended), recipe_id, ingredient_id

The tables will need to be connected up by relationships in the data diagram with the proper _id fields connected.

Now, to add an ingredient to a recipe, you add a record to the RecipesIngredient table with the desired ingredient_id and the current recipe_id.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.