{"title":"OptionCaption Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-optioncaption-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-optioncaption-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-optioncaption-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 text string options that are displayed to the user.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":121,"chars":54},{"level":2,"title":"Syntax","slug":"syntax","at":175,"chars":285},{"level":2,"title":"Remarks","slug":"remarks","at":460,"chars":341},{"level":2,"title":"Related information","slug":"related-information","at":801,"chars":113}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the text string options that are displayed to the user.\n## Applies to\n Table field\n Page Field\n Report Column\n## Syntax\n```al\nfield(1300; \"Payment Prediction\"; Option)\n{\n    OptionMembers = \" \",Late,\"On-Time\";\n    OptionCaption = ' ,Late,On-Time';\n}\n```\n```al\nfield(1301; \"Prediction Confidence\"; Option)\n{\n    OptionMembers = \" \",Low,Medium,High;\n    OptionCaption = ' ,Low,Medium,High';\n}\n```\n## Remarks\nOptionCaption sets the text used to show the option values available for a variable or a field on a page or report. The OptionString Property<devenv-optionmembers-field-property> contains the set of values that are acceptable choices. If you have set the devenv-optioncaptionml-property, this overrides the OptionCaption setting.\n## Related information\nOptionString Property<devenv-optionmembers-field-property>\ndevenv-optioncaptionml-property"}