{"title":"Dialog.HideSubsequentDialogs([Boolean]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/dialog/dialog-hidesubsequentdialogs-method/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dialog/dialog-hidesubsequentdialogs-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies that subsequent child dialogs are not shown.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Dialog.HideSubsequentDialogs([Boolean]) Method","slug":"dialoghidesubsequentdialogsboolean-method","at":0,"chars":2153},{"level":2,"title":"Syntax","slug":"syntax","at":164,"chars":253},{"level":2,"title":"Parameters","slug":"parameters","at":417,"chars":216},{"level":2,"title":"Return Value","slug":"return-value","at":633,"chars":150},{"level":2,"title":"Remarks","slug":"remarks","at":783,"chars":224},{"level":2,"title":"Example","slug":"example","at":1007,"chars":1012},{"level":2,"title":"Related information","slug":"related-information","at":2019,"chars":134}],"text":"# Dialog.HideSubsequentDialogs([Boolean]) Method\n> Version: _Available or changed with runtime version 1.0._\nSpecifies that subsequent child dialogs are not shown.\n## Syntax\n```al\n[HideSubsequentDialogs := ]  Dialog.HideSubsequentDialogs([HideSubsequentDialogs: Boolean])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Parameters\nDialog\nType: dialog-data-type\nAn instance of the dialog-data-type data type.\n*[Optional] HideSubsequentDialogs*\nType: ../boolean/boolean-data-type\nA value specifying whether to hide subsequent dialogs.\n## Return Value\n*[Optional] HideSubsequentDialogs*\nType: ../boolean/boolean-data-type\nTrue if HideSubsequentDialogs is set to true; otherwise, false.\n## Remarks\nYou 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.\n## Example\nThe following code illustrates how the HideSubsequentDialogs method works with two dialog variables.\n```al\nvar\n  MyDialog1 : Dialog;\n  MyDialog2 : Dialog;\n  Text000 : Label 'additional text';\n  begin\n\n    // The HideSubsequentDialogs method is used on MyDialog1 dialog.\n    MyDialog1.HideSubsequentDialogs := true;\n\n    // When MyDialog1 dialog opens, it will register as the root dialog.\n    MyDialog1.Open('Dialog 1');\n    Sleep(2000);\n\n    // MyDialog2 dialog will not open. However, the code associated with the Open call will run as if it was actually opened.\n    MyDialog2.Open('Dialog 2');\n    Sleep(2000);\n\n    // Updating MyDialog2 dialog will have no effect\n    MyDialog2.Update(1, Text000);\n    Sleep(2000);\n\n    // MyDialog1 dialog will open\n    MyDialog1.Open('Dialog 1 #1', Text000);\n    Sleep(2000);\n\n    // As soon as MyDialog1 dialog is closed, other can be reopened and they will no longer be hidden\n    MyDialog1.Close;\n\n    MyDialog2.Open('Dialog 2');\n    Sleep(2000);\n\n  end;\n```\n## Related information\ndialog-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}