Please, should someone know how to create a number or text mask input, specific for these scenario below?
We have to fields:
One field is a basic select component for person to choose between CNPJ or CPF.
If person choose CNPJ, the second field should be a ##.###.###/####-## (a 14 digit number)
If person choose CPF, the second field shoul be like this ###.###.###-## (a 11 digit number)
Those are specific brazilian tax number, for companies or citizens.
To illustrate better:
CNPJ: 99.999.999/9999-99
CPF: 999.999.999-99
NOTE: I tried to find an API call within Text Utilites pipe, but couldn’t find something useful for it.
I think should be necessary a custom JS code maybe.