# Page.LookupMode([Boolean]) Method
> Version: _Available or changed with runtime version 1.0._
Gets or sets the default lookup mode for the page.
## Syntax
```al
[LookupMode := ]  Page.LookupMode([NewLookupMode: Boolean])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
Page
Type: page-data-type
An instance of the page-data-type data type.
*[Optional] NewLookupMode*
Type: ../boolean/boolean-data-type
The new default lookup mode for the page.
## Return Value
*[Optional] LookupMode*
Type: ../boolean/boolean-data-type
The current default lookup mode for the page
## Remarks
The LookupMode method gets or sets the default lookup mode for the page. The lookup mode determines how the page behaves when a user selects a record in a lookup. If the default lookup mode is false, the page opens the selected record in the same window. If the lookup mode is set to true, the page opens the selected record in a new window.
## Related information
page-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/page/page-lookupmode-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/page/page-lookupmode-method/
