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.

Check if value is in ValueList

Featured Replies

I have a variety of fields that rely on one value list. To be valid, the contents of that field have to be a member of the value list (I don't want to use the filemaker validation because it's annoying). Anyway, i was thinking of using If(Substitute

(ValueListItems( "filename.fp7" ; "valuelist" ) ; FieldValue ; "" ) ≠ ValueListItems ; 1 ; 0 )

But the problem is it picks up incomplete values on the value list as valid. Is there an easier way of doing this?

Cheers,

~Genx

Value list entries are all terminated with a LF/CR pair (except the last one).

Typically I add a dummy paragraph marker to the end of the value list, then I always compare with "String" & "paragraph marker", but I use the POSITION function - so any value >0 must be a valid entry.

  • Author

Hmmm, thanks mate.

~Genx

  • Author

Come to think of it though, wouldnt "alue" return true if "value" was a value in the value list?

If you want to use Position(), you must check for:

Position ( ¶ & list & ¶ ; ¶ & item & ¶ ; 1 ; 1 )

I prefer:

not IsEmpty ( FilterValues ( item ; list ) )

  • Author

That works perfectly, thanks comment.

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.