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.

creating conditional lists

Featured Replies

I have a db, ItemDescription, and a db Checkoutlist, which points to a portal in ItemCheckout. People can check out numerous items from this portal, using the value list ItemDescription::ItemName. I have created a script for each record (ItemName is unique) that creates a field with the appropriate number of items for checkout in the form of n+1 on each line. e.g. If there were 5 Hyperstudio cd's available for checkout, the generated list within the Hyperstudio record (in the ItemDescription file, where it is created) would look like:

1

2

3

4

5

What I want to be able to do back in ItemCheckout is to click on ItemName, choose an item from the pop-up list, such as Hyperstudio, and then have the appropriate number list appear. Therefore, if someone checked out a Hyperstudio CD a list of 5 appears in NumList, whereas a list of 3 appears if they choose Peerless Drive. How do I get this to work without creating a separate record for each item (i.e. Hyperstudio CD 1, Hyperstudio CD 2, Hyperstudio 3, etc.)?

Thanks ahead of time.

Peter

Relationship based conditional menus produce values based on the index for the field on which the list is based.

If you don't want to create a separate record for each item, the alternative is to place the items within a field on one record, separated by carriage returns.

The carriage returns will ensure that the items are indexed separately, even though they reside within the same record.

  • Author

I've done that, but what happens when I do that is that the number list created is not relative to the item. I've got 32 Hyperstudio CD's, but the list goes 1-100 (and it's sorting by the first digit, hence:

1

10

100

11

12

13

14

etc.

What is wrong?

It's sorting as text (on the first character, then second etc.) rather than numerically. Alas, you can't make it into a number field and still have multiple entries in it. But, you can put leading zeros on the numbers to get them to sort properly. May not look to good though.

001

002

.

.

.

010

011

etc.

To add leading zeros, use this formula:

Right("000" & NumberField,3)

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.