Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

FindValues ( list ; searchString ; matchcase )

Rate this function:  

  Average rating: 4.3  (29 votes)
  Discuss this Custom Function

Theo Ros, n/a

Returns a list of all values from the original list that contain the given search string.

Sample Input:
FindValues ( "Red shoe¶Fred¶Redhead" ; "Red" ; True )

FindValues ( "Red shoe¶Fred¶Redhead" ; "Red" ; False )
Sample Output:
"Red shoe¶Redhead"

"Red shoe¶Fred¶Redhead"

 Then copy & paste into FileMaker Advanced's Edit Custom Function window.


Returns a list of all values from the original list that contain the given search string. Unlike FilterValues(), the search string can be part of the value, not the entire value. Furthermore, FilterValues() is always case insensitive, whereas here you can choose.

Syntax: FindValues ( list ; searchString ; matchcase )

In: list - the return delimited list to search
searchString - the string to search for
matchCase - if set to True (any value not equal to zero)
the function does a Case Sensitive search
if False (0) the function behaves Case Insensitive

Return type: Text

Uses function ListIndex() to do the real work of finding a matching item, without the need for recursing through every value in the list.

Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it


Its a shame that this does not work properly :/ I needed this .

It always returns only the first matching value not all the values on the list.

Tiago, Antwerp
July 05, 2012 2:25am

After a bit of doodeling , I manage to make it work, delete my previous comment :/

Tiago, Antwerp
July 05, 2012 2:37am

With input of

FindValues ( "(B) test 1 ¶ (F) test 2" ; "(F)";1 )

it returns

F) test 2

missing the "("

Alan, Cloverdale CA
May 20, 2017 3:10pm

It does not work properly when any value starts or ends with a characters that are considered word separators.

Here's a fix:

If ( not IsEmpty ( currlist ) ;
Let ( index = ListIndex ( currlist ; searchString ; matchcase ) ;
If ( index ; // combine what we find with the possible next one
List ( GetValue( currlist ; index ) ; FindValues ( MiddleValues ( currlist ; index + 1 ; 999999999 ) ; searchString ; matchcase ) )

HOnza Koudelka, Prague
November 09, 2017 6:00am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 1 + 1 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. SortList ( theList )
  (Sat, Jun 23, 8:45am)
2. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
3. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
4. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
5. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
6. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
7. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
8. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)

RSS Feed of Custom Functions