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

NameFromID ( _ID ; _Type ; _File )

Rate this function:  

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

Thomas Seidler, The Good Book Company

Gets names from static FileMaker IDs for layouts, scripts, fields, tables, valuelists

Sample Input:
NameFromID ( 432 ; "Layout" ; "" )

assumes you ran sister function and stored the result:
IDFromName ( "Account: Data Entry" ; "Layout" ; "" )
Sample Output:
"Account: Data Entry"


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

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed


Obvious thanks to Ray Cologon and bigging up the FileMaker 9 bible. Very heavy book and ideas. Good stuff. Thank you! I didn't want separate functions for Layouts, Scripts, Tables etc - one can do them all.

This function is kind of pointless without its twin sister -

The big advantage of using FileMaker's internal IDs for layouts, fields and scripts is that the number *never* changes, you may change the layout name, but if you are internally referencing by the ID, you're fine, you can easily nick the current name using this function.

So you may have changed the layout/field order, but it's still got the same ID.

Any bugs tell me and i'll fix, but i've been using this for the last few months particularly with layouts.

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


In practical terms, how is this useful?
Isn't it true that any reference to (e.g.) a layout name is coded by FileMaker a in terms of its ID already?
So a change of layout name merely changes the visible layer (of a script or calc) and all is taken care of, right?
Why do we want to know the ID?

Lorne Walton, Maple Ridge, BC, Canada
May 24, 2009 7:12am

For instance. If you ever use GoToLayout By calculation and send IDs instead of names (as names can change), then you'll need a conversion method as Layout ID ≠ Layout Number.

Ray Cologon (who is a genius) comments very sensibly on this.

Likewise scripts, script trigger custom functions generally require name useage, this name may change, the ID will not, so you need to store the Script ID, and at call point convert the ID into the name using this function.

Thomas Seidler, London
December 07, 2010 9:55am

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 5 + 7 =
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. PreviousMonthEndDate ( myDate )
  (Wed, Mar 07, 3:35am)
2. PreviousMonthName (myDate)
  (Wed, Mar 07, 3:33am)
3. FmTableFields ( tableName ; fieldsInclude ; fieldsExclude ; classExclude ; typeExclude ; prefixExclude )
  (Fri, Mar 02, 6:32am)
4. sql.getTable ( fullyQualifiedFieldObject )
  (Thu, Feb 22, 8:36am)
5. sql.getField ( fullyQualifiedFieldObject )
  (Thu, Feb 22, 8:34am)
6. FilterOut ( ListA ; ListB )
  (Wed, Feb 21, 6:11pm)
7. Char0 ( )
  (Sun, Feb 18, 2:35am)
8. CreateVCardFile ( FirstName ; LastName ; CompanyName ; Phone ; Email ; WEB ; hAddress1 ; hAddress2 ; hZip ; hCity ; hCountry ; wAddress1 ; wAddress2 ; wZip ; wCity%2
  (Sun, Feb 18, 1:50am)

RSS Feed of Custom Functions