New Window
Purpose 
Creates a new window based on the foreground window. You can create a document window, a floating document window, or a dialog window.
Format 
New Window[Name: <name of window>; Height: n; Width: n; Top: n; Left: n; Style: Document/Floating Document/Dialog]
Options 
Click Specify to set options for the new window.
 •
Window Name is the name you specify for your new window. You can enter literal text or click Specify to create a window name from a calculation.
 •
Height is the height of the new window in pixels. You can enter a number or click Specify to generate a number from a calculation.
 •
Width is the width of the new window in pixels. You can enter a number or click Specify to generate a number from a calculation.
 •
Distance from top is the new window’s distance in pixels from the top of the screen (Mac OS) or top of the FileMaker Pro window (Windows). You can enter a number or click Specify to generate a number from a calculation.
 •
Distance from left is the new window’s distance in pixels from the left of the screen (Mac OS) or left of the FileMaker Pro window (Windows). You can enter a number or click Specify to generate a number from a calculation.
 •
Window Styles settings let you specify that the new window is a document window (default setting) or a dialog window. To specify a window style, select Specify Advanced Style or click Specify. See Specify Advanced Style Options dialog box.
Note  If you clear the Specify Advanced Style checkbox, you will lose any advanced style settings that have been created.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Yes 
FileMaker Go 
Partial 
Custom Web Publishing 
Partial 
Instant Web Publishing 
Partial 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
A new window has the same layout, same table, same found set, and same current record as the original window. You can specify the new window is a document window, a floating document window, or a dialog window.
 •
 •
Floating document windows remain on top of other FileMaker Pro windows even when they become inactive.
 •
Dialog windows are modal. They appear in the foreground and can’t be minimized. Users cannot activate an open document window before closing an open dialog window.
Create document windows for typical user-input tasks or tasks that can take place in a random order. Use dialog windows to collect required or prerequisite information or to alert users.
Notes
 •
 •
 •
It is not necessary to enter values for each option. When no value is entered, FileMaker Pro uses the default value associated with the Window menu > New Window command.
 •
Minimum height and minimum width depend on the operating system of the user performing the script. If the height or width you specify are less than the minimum, FileMaker Pro uses the minimum values.
 •
 •
 •
If you select Show Compatibility, the string (VIRTUAL WINDOW ON WEB) is added to the script step display to indicate to the user that a new virtual window is opened in the same browser window.
 •
 •
 •
Kiosk mode (FileMaker Pro Advanced)
 •
 •
 •
When multiple Kiosk and non-Kiosk files are open, if a non-kiosk file opens a new dialog window, the user can’t switch to other windows (including a window created in Kiosk mode)
Examples 
The following examples create a new document or dialog window based on the Data Entry layout.
Document window:
Go to Layout [“Data Entry”]
New Window [Name: “Enter data here”; Height: 400; Width: 600;
Top: 16; Left: 16; Style: Document;]
Dialog window:
Go to Layout [“Data Entry”]
New Window [Name: “Enter data here”; Height: 400; Width: 600;
Top: 16; Left: 16; Style: Dialog]
Note  In the Edit Script dialog box, only the window style type is included in the script step specification. To see all settings, use the Manage Scripts dialog box to print the script. All window style settings also appear in the Database Design Report (FileMaker Pro Advanced).
Related topics 
Defining calculation fields
Script steps reference (alphabetical list)
Script steps reference (category list)