The Pega platform provides a great variety of user input field formats and validations. For example, from a simple series of numbers, after leaving the input field, it can display the numbers as a phone number.
However, if you would like to format your user’s input automatically while it is being submitted, you would have to look for an alternative solution.
Implementing and then including a custom javascript function could help you solve this issue.
In our use case, we needed user input fields that could format bank account numbers, IBAN numbers and SWIFT codes automatically. While the user is able to add and remove these fields.
For this we used the Cleave.js external library, for additional information please check out our tutorial here.