Reference > Functions reference > Logical functions > Self
 
Self
Purpose 
Returns the content of the object in which the calculation is defined.
Format 
Self
Parameters 
None
Data type returned 
text, number, date, time, timestamp
Originated in 
FileMaker Pro 9.0
Description 
The Self function provides a way for a calculation to reference the object with which it is associated without having to explicitly reference the object.
Use Self to create a single calculation formula that can be applied to different objects. The Self function is helpful for conditional formatting calculations and tooltip calculations because it returns the content of the layout object when that object has a value. You can also use the Self function in field definition calculations (including auto-enter and validation calculations) to return the value of the corresponding field.
Examples 
This example formula can be used in an object’s conditional formatting panel to set text formatting when the number entered in the field is greater than 10.
self > 10 returns 1 (True) when applied to a layout field object whose value is greater than 10.
Use the following example in a layout object’s tooltip calculation to display different tooltip text according to whether or not a value less than zero was entered.
if(self < 0; "Value is less than zero"; "Value is zero or greater")
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas
Defining conditional formatting for layout objects