Skip to main content
Open

Field prefix and suffix

Related products:Software FactoryUniversal UIUI/UX
  • October 31, 2024
  • 4 replies
  • 64 views

Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil

It’s sometimes unclear for a user what to fill in. Especially when it comes to amounts, units, numbers, percentages.. They always have an accompanying unit. Would be great to have a input type like the upload where you can select the unit field to be prefixed or suffixed. 
 

Add prefix-text and suffix-text attributes to text fields to display additional context for the value.
 

https://material-web.dev/components/text-field/#prefix-and-suffix

4 replies

Jeroen van den Belt
Administrator
Forum|alt.badge.img+10

Hi @Freddy, do you think your idea is similar enough to this one to consider merging them?

 


Freddy
Forum|alt.badge.img+16
  • Author
  • Thinkwise Local Partner Brasil
  • November 5, 2024

Hi @Freddy, do you think your idea is similar enough to this one to consider merging them?

 

@Jeroen van den Belt that would depend on how that idea would be interpreted. If it’s implemented as defining a currency prefix for example upfront, it’s not completely the same. Steering the display value is one, connecting it to the unit of measure (which most likely be another field) is another. 
 

This idea predominantly is about coupling fields of value with its unit of measure. So it’s always crystal clear what a person is entering. The field description is not sufficient as you cannot alter it based on a selected currency for example.


Jeroen van den Belt
Administrator
Forum|alt.badge.img+10

Thanks for your reply Freddy. It sounds like your idea also has its own legitimacy. I'll open it up for voting.


Jeroen van den Belt
Administrator
Forum|alt.badge.img+10
NewOpen