TextInputField with pre Format

Hi, has anyone already added kind of “preformatted Textfield”? for Example for a tax number which has the format

xx/xxx/xxx/xx

And while typing the cursor jumps behind the slash once the first “part” has been filled?

Maybe i am searching for a wrong name, but cant find kind like that

There is no component in the core for this. You can use these addons:

These 2 should fit your need

1 Like

Thank you. Mostly i am not a fan of external addons because often they are not compatible anymore after a core update. Or are there mechanism that ensure that addons are always compatible?

Have this experience with other technologies and that’s why I am a little careful

The best way to ensure an important add-on remains usable is to learn how it works. Once you know how to build and modify the add-on yourself, you can (hopefully) fix it in case a framework upgrade causes issues.

These components are maintained based community support or when a Vaadin customer needs it we can update it with Expert on Demand. Support plans for your business
If you’re checking the text field formatter it has been working from Vaadin 8 to 24. But usually the update can take a long time or it can be abandoned if no one is paying (with time or money).

For the cleave zen addon, it’s a copy of the previous addon ( text field formatter) but since the JavaScript library (cleavejs) used in the text field formatter has been deprecated a new Vaadin addon has been created).
It’s an open source project based on an open source project :).

I remembered that this feature was asked as a core feature, masking is something really difficult to do ( and make it work in all possible cases), probably as hard as validation. So it has not been in the roadmap.

I understand your concern. There are many kinds of add-ons in Directory and it is good to do some due diligence when you use them. Generally speaking there are some very good and well maintained ones there. One extra thing to mention is that everything released by Vaadin Component Factory are someting that Vaadin’s paying customers have sponsored work for using the Expert on Demand services as pointed by JC. The most popular of those gets updated fairly quickly when there are breaking changes in the core. Some of the add-ons released under Parttio name are pretty much the same as well. The strength here is that there is proven continuity, the maintenance is not relying on one person.