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

GetFieldList ( fieldName ; recordNumStart ; recordNumEnd )

Rate this function:  

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

Don Wieland, DW Data Concepts

Gets a Range of field values for local or related field

Sample Input:
GetFieldList (Color , 1, 3)

when a field called color has these values:

Record 1 = Blue

Record 2 = Yellow

Record 3 = Blue

Record 4 = Red
Sample Output:

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


Gets a Range of field values for local or related field. Returns a hard return delineated list.

Duplicates will NOT be omited. The equililent to a TextSum that some FMP plug-ins offer.

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


This function does not seem to behave as expected if the last field in the found set is null.

For example, in a found set of 10 records, the "Nothing" field is all Null values. I would expect to have this

Valuecount(getfieldlist(Table::Nothing, 1, get(foundcount)))

to return "10" (for the the ten null values).

Instead this returns 9.

In fact, I've had some issues with this if ONLY the last field is Null.

Any ideas?

- Christian

Christian, Minneapolis
February 17, 2011 7:07pm

Didn't want to create new function entry, as this is basically the same. I use this all the time, but I only ever use it to obtain complete lists of all field values (including blank) for foundset. It will be a value list of the exact length of the foundset (carriage returns within values will have been escaped). And I use it for really large foundsets. So I switched it to tailend recursion to enable up to 50k, and created a handler function:

GetFieldList ( fieldName )
// Usage: GetFieldList ( Table::FieldName ) or GetFieldList ( GetField("Table::FieldName" ) )

GetFieldList_part ( fieldName ; 1 ; Get ( FoundCount ) ; "" )

The sub-function:

GetFieldList_part ( _fieldName ; _start ; _end ; _valueList )
// Switched to tail end, 2012, Thomas Seidler - to allow 50k

Let (
_thisVal = Substitute( GetNthRecord ( _fieldName ; _start ) ; "¶"; "\¶" ) ;

If (
_start < _end ;
GetFieldList_part ( _fieldName ; _start + 1 ; _end ; _valueList & _thisVal & "¶" ) ;
_valueList & _thisVal & If(IsEmpty(_thisVal);"¶")


Thomas Seidler, London
July 04, 2013 6:25am

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 7 + 6 =
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. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions