A PowerApps PCF control that displays a single text field masked with a configurable numeric pattern (e.g., phone numbers, SSN, others). The mask pattern is fully configurable via the maskPattern property.
- Configurable mask template (e.g.,
(___) ___-____) - Always displays the mask template, updating as the user types
- Supports any mask pattern using underscores (
_) as digit placeholders
- Add the control to your PowerApps environment.
- Bind the
maskFieldproperty to the text field you want to mask. - Set the
maskPatternproperty to your desired template, e.g.:- US Phone:
(___) ___-____ - US Phone:
+1 (___) ___-____ - SSN:
___-__-____ - CUSTOM:
AA-__-____-2005
- US Phone:
| Property | Type | Usage | Description |
|---|---|---|---|
| maskField | SingleLine.Text | bound | The field to display and store the masked value. |
| maskPattern | SingleLine.Text | input | The mask template, e.g. (___) ___-____. |
If you set maskPattern to (___) ___-____, the control will display:
(___) ___-____
As the user types, digits fill the underscores.
This project is licensed under the MIT License.
Author: Chris
Version: 0.0.1