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.

value lists & related fields

Featured Replies

Okay, I'm going a little crazy. I've read through a bunch of the posts on displaying a value list that is based on related values and I'm still not able to do what I need.

I've got a database that is essentially a clothing inventory/availability. I have a value list called "sizes" which contains all the available sizes for all items in the database. In the db this is displayed as check boxes. If an item is available in a particular size, the checkbox is checked. I have another value list called "colors" which works in the same way, except that I have the value list based on fields from another table.

Now for the web side... using custom web publishing, FMP5 unlimited on Windows XP-

Ultimately, I want the user to get a list of available items and then choose which they want and in what sizes and colors. The first hurdle that I need help on is this. How the heck can I get the appropriate sizes (and colors) to show up in a value list? I don't care if it's a drop down menu or radio buttons. I just want the user to only see, and be allowed to choose, sizes and colors that are available.

In the various iterations I've tried, the closest I've come is using a portal. My problem here is that all the available sizes end up displaying on one line, as one option. I can't get them to be separate values.

I've also tried a calculation field using the design function "valuelistitems" but had no further success.

This database is not very big, so any suggestions, including redoing the relationships and such are welcome.

TIA,

Carrie

Try with an Inline

<Select name="FieldName">

<option value=""> Select a value

[FMP-InlineAction:-db=Items.fp5,-lay=cgi,Item={field:ItemID},-max=all,-find]

[FMP-Record]

<option value="[FMP-Field:Size]">

[FMP-Field:Size]</option>

[/FMP-Record]

[/FMP-InlineAction]

This will produce a list of the sizes related to an item; with a similar mechanis you can also get radio buttons, checkboxes etc ...

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.