In Dynamics 365 Business Central UI pages that contains sensitive informations, sometimes a common requirement coming from customers or auditors is to mask them.
A common way to prevent a field value to be visible in the UI is to set the ExtendedDataType property of the table field to Masked:
This property displays the field value as dots in the UI. The user can enter the value but the value itself is never displayed in clear text. Sometimes this is quite noisy, because you would like to have the value of the field shown as not visible by default, but made visible when needed by the user just for the time to read its value.
With Dynamics 365 Business Central 2025 Wave 2 release, a new MaskType enum property is introduced for fields. This new enum can have the following values:
To set a field value as concealed, you need to do like in the following example:
and the field will be rendered as follows in the UI:
As you can see, an “eye” button is rendered on the control (near the field value) and it allows users to toggle between hide and unhide state. This is particularly useful for scenarios where sensitive must be protected from casual observation, but the value must be visible on demand.
The new MaskType = Concealed property is supported only on Code, Text, Decimal and Integer fields and on document and card pages (not supported on repeater in list pages and on grids) and it’s supported on web client and mobile client.
Obviously, the new MaskType = Concealed propertyt can’t be used together with ExtendedDatatype = Masked property:
Please note that this feature is intended to provide lightweight information protection at the UI layer only, since the unmasked data is still transmitted to the web browser.
The new property will be available starting from Dynamics 365 Business Central version 27.1 and it will not be enabled by default. To use it (in standard and custom objects) you need to enable it via Feature Management.
Useful? For me yes… because privacy is not an option
Original Post https://demiliani.com/2025/09/18/dynamics-365-business-central-introducing-the-new-maskedtype-enum-field-level-property/