# Value

The MaskedTextBox enables you to format its masked (visible) value by setting its [`value`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#value) property.

The mask-formatting configuration is based on the following properties:

* [`mask`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#mask)—Represents the current mask pattern of the component.
* [`prompt`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#prompt)—Represents the character used for the unfilled parts of the mask.

As a result, the masked value is formatted when the user pastes or types in the input field. The [`value`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#value) property is recomputed and uses the following configuration:

* [`promptPlaceholder`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#promptPlaceholder)—The character you can use to replace the `prompt` character from the masked value in the value. By default, it is `space`. The default approach facilitates the persisting of the unfilled parts of the mask in the extracted value. To avoid empty spaces replacing missing `prompt` characters in the value, set the `promptPlaceholder` option to an empty string (`''`) or `null`.
* [`includeLiterals`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#includeLiterals)—The property that indicates whether to include literals in the value of the component. By default, `includeLiterals` does not include literals.

The formatting of the MaskedTextBox value triggers the [`valueChange`](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent#valueChange) event.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/inputs/maskedtextbox/value/source.txt)

## Suggested Links

* [API Reference of the MaskedTextBox](https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/maskedtextboxcomponent)
