# Dialog.HideSubsequentDialogs([Boolean]) Method
> Version: _Available or changed with runtime version 1.0._
Specifies that subsequent child dialogs are not shown.
## Syntax
```al
[HideSubsequentDialogs := ]  Dialog.HideSubsequentDialogs([HideSubsequentDialogs: Boolean])
```
> NOTE
> This method can be invoked using property access syntax.
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
Dialog
Type: dialog-data-type
An instance of the dialog-data-type data type.
*[Optional] HideSubsequentDialogs*
Type: ../boolean/boolean-data-type
A value specifying whether to hide subsequent dialogs.
## Return Value
*[Optional] HideSubsequentDialogs*
Type: ../boolean/boolean-data-type
True if HideSubsequentDialogs is set to true; otherwise, false.
## Remarks
You must call the HideSubsequentDialogs method on the dialog variable before the dialog-open-method. Until the dialog-open-method is called on this variable, calls on other dialog variables will behave as normal.
## Example
The following code illustrates how the HideSubsequentDialogs method works with two dialog variables.
```al
var
  MyDialog1 : Dialog;
  MyDialog2 : Dialog;
  Text000 : Label 'additional text';
  begin

    // The HideSubsequentDialogs method is used on MyDialog1 dialog.
    MyDialog1.HideSubsequentDialogs := true;

    // When MyDialog1 dialog opens, it will register as the root dialog.
    MyDialog1.Open('Dialog 1');
    Sleep(2000);

    // MyDialog2 dialog will not open. However, the code associated with the Open call will run as if it was actually opened.
    MyDialog2.Open('Dialog 2');
    Sleep(2000);

    // Updating MyDialog2 dialog will have no effect
    MyDialog2.Update(1, Text000);
    Sleep(2000);

    // MyDialog1 dialog will open
    MyDialog1.Open('Dialog 1 #1', Text000);
    Sleep(2000);

    // As soon as MyDialog1 dialog is closed, other can be reopened and they will no longer be hidden
    MyDialog1.Close;

    MyDialog2.Open('Dialog 2');
    Sleep(2000);

  end;
```
## Related information
dialog-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/dialog/dialog-hidesubsequentdialogs-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/dialog/dialog-hidesubsequentdialogs-method/
