Suffix/prefix at numberfield

Hi, I am working with numberfields and need to add an suffix or prefix at the numberfield. But do not want to make it a (text)field. Is this possible?

Kind regards,
Jip

2 Likes

Hi @jip ,

All input parameters allow for prefixes and suffixes to be defined. This, however, adds the prefixes and suffixes next to the field label in brackets, e.g. “My label (kg)”. Here is the documentation for reference:

Does this help? If not, could you elaborate what you want exactly, and why this is important?

Hi @mslootweg,

It is indeed possible to add prefixes add the field labels, but want it at the field input. So that it is more clear when you have multiple numberfields that is about m^2, %, $ … .
Kind regards,
Jip

Received feedback from Jonatan H. as well. His case presents an example where the unit disappears because of the field’s width, which can be resolved with the flex argument, but is not ideal. Here is how it currently looks like:

Versus an example on how it could look like to be clearer:

This links up well with this issue for example: