Allow selecting an outpt unit different from the input unit (field display)

Created on 5 August 2024, 6 months ago

Problem/Motivation

Unit conversion is something which should be covered by the Physical field values module. It's not untypical to enter a length e.g. in mm (or let the user choose the appropriate unit) but unify the output.

Some examples:

  • Length is entered in mm but should be output in mm
  • Weight is entered in kg but should be output in kg
  • Length is entered in inch but should be output in cm

Future consideration
Taking this one step further, it might even make sense to have an "automatic" option for the formatter to choose the appropriate unit based on the entered value, e.g. if the value is 10000g it could output this as 10kg. But for now, this should just be for discussion, maybe a feature request for the future.

Steps to reproduce

Proposed resolution

  • Allow unit conversions by storing conversion rates / multipliers
  • Allow selecting an output unit in the field display settings

Remaining tasks

  • Discuss
  • Implement
  • Test
  • Release

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024