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.

checking a portal for an occurrence of a few strings..

Featured Replies

I'm trying to check if a filename in a portal of attachments contains one of a few words, and then have it auto-enter "yes" into a text field if so... it's entering nothing into the text field even when the strings I'm searching for exist in the related value list.. what am I doing wrong ?

Let (



[values = ValueListItems(Get(FileName); "attachments")]; 



Case(



(



 (PatternCount( values; "CV") >0)



or 



(PatternCount (values ; "resume") >0)



or  (PatternCount(values ; "app") >0)



  );  "yes"; "") )

thanks :

For one thing, you don't need the square brackets in your Let function when you only have one expression, but I'm not sure that would break the calc. Is the related table in the same file? If not, then Get(FileName) would fail. Is "attachments" the correct v/l name?

Since you have FileMaker 8 Advanced, use the Data Viewer to evaluate each piece of your calc and you should find the answer easily.

You need to use an UNSTORED calculation field - if you want it to update when related records are modified. Even so, with the calculation referencing a value list, it might not refresh until you click into the field or do a manual Refresh Window.

  • Author

Thanks comment.. that was the problem. thanks for the help Fitch

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.