# Sensitive data mask

Sensitive data masking is used to hide sensitive parts of information in a text field or label by replacing selected characters with a symbol `*`. This makes it possible to protect data such as a PESEL number or credit card number so that they are not fully visible on the screen. The property **Sensitive data mask** can be found in the component properties panel, in the section **Security**. After enabling masking, the specified characters of the field value will be displayed as asterisks.

<figure><img src="/files/efa9b730fe58cb6541866e9b4ce954b42041dcbe" alt=""><figcaption><p align="center"><em><strong>Figure 1.</strong> Sensitive data mask in the Text Field</em></p></figcaption></figure>

It should be remembered that sensitive data masking **works only for fields populated with data from another source** (e.g. a value retrieved from another field or service). If the user **enters** data into the field themselves, the mask will not be applied – the entered characters will remain fully visible. For example, if the text field *A* is automatically filled with a value copied from another field *B* (data source from another field), then a mask can be applied to field *A* to hide part of the information. However, if the user enters data in *A* manually, masking will not work.

Masking can also be applied to components of type **Label (Text)** displaying application data. In the case of a label, in addition to simply enabling masking, an additional option is available **Sensitive data masking condition** – it allows you to define a condition (logical), when met, the given label will mask its value. This makes it possible, for example, to mask a PESEL number only for certain user types or in specific process states.

<figure><img src="/files/407ec81fb2db13524b0905b84495e4e954080f3c" alt=""><figcaption><p align="center"><em><strong>Figure 2.</strong> Sensitive data masking condition in Label</em></p></figcaption></figure>

{% hint style="info" %}
Note: Do not combine Sensitive Data Masking with other formatters on the same field. For text fields, it is recommended not to apply sensitive masking at the same time as a formatter (e.g. phone number formatting) to avoid conflicts and unexpected formatting behavior.
{% endhint %}

{% hint style="info" %}
Demo request: demoTextComponents
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/walidacja-wartosci-komponentow/maska-danych-sensytywnych.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
