{"title":"CharAllowed Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-charallowed-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-charallowed-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-charallowed-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 range of characters the user can enter into this field or control.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":136,"chars":39},{"level":2,"title":"Syntax","slug":"syntax","at":175,"chars":40},{"level":2,"title":"Remarks","slug":"remarks","at":215,"chars":886},{"level":2,"title":"Related information","slug":"related-information","at":1101,"chars":40}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the range of characters the user can enter into this field or control.\n## Applies to\n Table field\n Page Field\n## Syntax\n```al\nCharAllowed = 'AZ';\n```\n## Remarks\nIf you want users to only enter uppercase letters in this field, enter AZ. This ensures that only uppercase characters in the range of A-Z are accepted. If you want both uppercase and lowercase characters, leave this value blank.\nYou can specify multiple ranges of characters by entering the parameters in pairs. For example, a value of admpzz indicates that only the following characters are accepted: a, b, c, d, m, n, o, p, and z. If you only want to allow a single character, then enter that character twice to specify a starting and ending range.\nThe setting for the field is checked 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 CharAllowed property is not validated.\n## Related information\ndevenv-properties"}