{"title":"NotBlank Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-notblank-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-notblank-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-notblank-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 a value that specifies whether users must enter a value in the selected field or text box.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":156,"chars":39},{"level":2,"title":"Syntax","slug":"syntax","at":195,"chars":37},{"level":2,"title":"Remarks","slug":"remarks","at":232,"chars":913},{"level":2,"title":"Related information","slug":"related-information","at":1145,"chars":114}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets a value that specifies whether users must enter a value in the selected field or text box.\n## Applies to\n Table field\n Page Field\n## Syntax\n```al\nNotBlank = true;\n```\n## Remarks\nYou can use this property together with the devenv-initvalue-property to make sure that an entry is made in this field. This setting is evaluated for controls and fields during validation. Validation occurs only if the field or control value is updated through the UI, for example, if a value is updated on a page or if a field is updated in a table directly. If a field is updated through application code, then the NotBlank property is not validated.\nYou can set the NotBlank property to true on primary fields in a table. Setting the NotBlank property to true on other fields in a table does not cause a red star marking on the UI.\nIf the NotBlank property is used on other fields than primary fields, the behavior is as follows:\n If the field is blank, and never entered, the page can be closed.\n If the field has been entered, and the user tries to enter a blank value, a validation error occurs.\n## Related information\ndevenv-minvalue-property\ndevenv-maxvalue-property\ndevenv-numeric-property\ndevenv-properties"}