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.

changing value lists

Featured Replies

Using a file that has nothing but a dozen value lists, I want a revolving door for the values in a field in my main file, escpecially when the value in a counter field is triggered. Here's what I have so far:

if(Global counter <= 10

set field (global text, valuelistitems (file2, field1)

set field (magazine, global text)

if(Global counter >=11 & global counter <= 20

set field (global text, valuelistitems (file2, field2)

set field (magazine, global text)

end if

end if

Why isn't this working? Am I mis-using the valuelistitems function?

First thing I can see wrong with this is your 'If' structure.

You have the second If statement, inside the first one when you want it outside.

Basically your saying...

If <= 10

Perform this code including 'If >= 11'

You are already looking at <= 10 so the second If will never return true.

Hope this helps

  • Author

So I changed it to read:

if(Global counter <= 10

set field (global text, valuelistitems (file2, field1)

set field (magazine, global text)

end if

if(Global counter >=11 & global counter <= 20

set field (global text, valuelistitems (file2, field2)

set field (magazine, global text)

end if

Why doesn't it work yet?

[ November 14, 2001: Message edited by: Allegheny ]

With the information you've given me, the only advice I can give is look for little mistakes.

Make sure that your global fields are set to the appropriate type (number, text, date.)

Also when using ValueListItems, make sure that you put "file2.fp5" (or whatever version of FileMaker that you are using) rather than just "file2"

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.