Back to all

A prefix for a textField element

Hey,
I created a custom text element for the form with a fixed prefix that signals the user how the should approach the field in question. This could be a nifty feature to implement into the textField elements for example.

I was asked to share the solution, so here goes.
Not sure if this is the best way to do it, but at least it works:

VDI-
The maxinum length of the name is 11 characters. You can include letters (a-z), numbers or a dash ('-').

The prefix can also be transformed into a "suffix" by placing the "your text here" block after the input tag.