Reference > Functions reference > Get functions > Get(ScreenScaleFactor)
 

Get(ScreenScaleFactor)

Returns the scale factor of the screen in which the current file is open.

Format 

Get ( ScreenScaleFactor )

Parameters 

None

Data type returned 

number

Originated in version 

13.0.2

Description 

In macOS and FileMaker Go, this function returns a scale factor based on the relative pixel density of the screen; for example:

1 for a device without a Retina display

2 for a Mac with a Retina display; iPhone 6, iPhone 7, iPhone 8, iPhone 11, or iPad Pro

3 for iPhone 6 Plus, iPhone 7 Plus, iPhone 8 Plus, iPhone X, or iPhone 11 Pro Max

In Windows, this function returns the scale factor specified in Settings.

In FileMaker WebDirect, server-side scripts, the FileMaker Data API, and Custom Web Publishing, this function returns 1.

Example 1 

Get(ScreenScaleFactor) returns 2 on iPad with Retina display.

Example 2 

Detects the screen scale factor, then goes to a layout designed for a large scale factor or goes to a standard layout.

If [Get ( ScreenScaleFactor ) = 1.5]
Go to Layout [Invoices Factor 150%]
Else
Go to Layout [Invoices]
End If

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas