{"title":"Caption Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-caption-property/","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/properties/devenv-caption-property, 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/properties/devenv-caption-property","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":"Sets the string that is used to identify a control or other object in the user interface.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":150,"chars":414},{"level":2,"title":"Parameters","slug":"parameters","at":564,"chars":438},{"level":2,"title":"Syntax","slug":"syntax","at":1002,"chars":165},{"level":2,"title":"Remarks","slug":"remarks","at":1167,"chars":415},{"level":2,"title":"Related information","slug":"related-information","at":1582,"chars":88}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the string that is used to identify a control or other object in the user interface.\n## Applies to\n Table\n Table field\n Page Field\n Field Group\n Page\n Request Page\n Page Label\n Page Group\n Page Part\n Page System Part\n Page Action\n Page Action Separator\n Page Action Group\n Xml Port\n Report\n Query\n Query Column\n Query Filter\n Enum Value\n Page Custom Action\n Page System Action\n Page File Upload Action\n Page View\n Page Analysis View\n Report Column\n Report Layout\n Profile\n Enum Type\n Permission Set\n## Parameters\nThe property has three optional parameters; Locked, Comment, and MaxLength.\nLocked\nType: ../methods-auto/boolean/boolean-data-type\nIf true the Caption is locked and should not be translated.\nComment\nType: ../methods-auto/text/text-data-type\nDescriptive text for the Caption, for example, with regards to translation.\nMaxLength\nType: ../methods-auto/integer/integer-data-type\nSets the maximum length of the specific Caption.\n## Syntax\n```al\nCaption = 'Name';\n```\nOr, with parameters:\n```al\nCaption = 'Name', Locked = true, Comment = 'Keep like this, do not translate.', MaxLength = 20;\n```\n## Remarks\nA caption is the text used to show the identity of a control. For example, in the caption bar of a page or a label for another control.\n> NOTE\n> For query columns, when you run the query from Object Designer, the About This Query window that opens in the RoleTailored client displays the value for the Name Property<devenv-properties> of the query column, not the Caption property or CaptionML Property.\n## Related information\ndevenv-showcaption-property\n../devenv-work-with-translation-files"}