Reference > Functions reference > Logical functions > GetFieldName
 
GetFieldName
Purpose 
Returns the fully qualified name of a field reference.
Format 
GetFieldName(fieldName)
Parameters 
fieldName - any field object or evaluation of a text expression that refers to a field’s name
Data type returned 
text
Originated in 
FileMaker Pro 10.0
Description 
Use this function to get the fully qualified name of fieldName (tableName::fieldName).
Notes 
If you specify the context for the current calculation, this function will be evaluated based on that context. Otherwise, it will be evaluated based on the context of the current window.
Examples 
GetFieldName(x) returns the name of a field reference passed into a custom function as parameter x.
GetFieldName(Evaluate(<fieldName>)) returns the name of a field based on the data stored in <fieldName>.
GetFieldName(Evaluate(Get(ActiveFieldName))) returns the fully qualified name of the field that has the focus when executed.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions