Reference > Functions reference > Design functions > FieldStyle
 
FieldStyle
Purpose 
Returns the field formatting applied to fieldName on layoutName in fileName.
Format 
FieldStyle(fileName;layoutName;fieldName)
Parameters 
fileName - the name of an open database file (local or remote).
layoutName - the name of a layout in the specified database file.
fieldName - the name of a field on the specified layout.
Important  See Design functions for information about literal text parameters.
Data type returned 
text
Originated in 
FileMaker Pro 6.0 or earlier
Description 
If the field has a value list associated with it, the FieldStyle function also returns the name of the value list.
A standard field returns Standard.
A standard field with a vertical scroll bar returns Scrolling.
A drop-down list returns Popuplist.
A pop-up menu returns Popupmenu.
A checkbox returns Checkbox.
A radio button returns RadioButton.
A drop-down calendar returns Calendar.
Examples 
On the Data Entry layout in the Customers database file, FieldStyle(“Customers”;“Data Entry”;“Current Customer”) returns RadioButton Yes/No List when the Current Customer field is formatted as a radio button and is associated with the value list named Yes/No List.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas