Format and clear textbox formatting

I would like to use the textutils extension to format a document that in Brazil is called CPF. It has 11 characters divided into dots and dash: 111.111.111-11. I saw in other posts that just do it this way:

I don’t know which event to use because I want as soon as the user types this dots and dash appear.

The other point concerns the cleaning of these dots and dashes. Some time ago I had asked about saving data in firebase with special characters. I got a very kind response from GSR and Rogério Rios explaining the reasons. Thank you for that question. After formatting to save in the bank, is there no way to clean this formatting to only keep the numbers?

just remove the dots and dash using the replace all block before storing the value in the database
Taifun

“just remove the dots and dash using the replace all block before storing the value in the database
Taifun”

Great! Thanks

Now, regarding the use of the extension in which event do I use it so that when the user is typing, the dot and dash appear at the same time?

Use the OnTextChanged event of the textbox

Taifun

You Can Use Textbox1.OnTextChange Event