QReg5 Design System

Input fields

Sometimes a user needs to enter a value. Depending on what needs to be entered, different types of fields are used which can, in cases where it is possible, check that the value is entered in the correct format.

Live Demo

Modifier/Option
State
Add-on

Available components

ComponentDescription
IntegerUsed for numeric fields where the value must be an integer.
DecimalUsed for numeric fields that require the value to be entered with one or more decimals.
Text fieldUsed for a shorter text string, for example a single word.
Text areaUsed for a shorter text, usually in the form of two or three sentences.

Usage Scenarios

  • The exact information the user has access to and the registry's analysis needs should guide which type of component is suitable. Integers can be quite sufficient in many cases, while others (e.g. certain lab values) require higher precision and should be entered with one or more decimals.
  • Text fields and text areas should only appear after careful consideration, as both data quality and legal aspects need to be taken into account. The main rule is therefore that free text should not appear as an input component, but exceptions can be made for certain purposes, for further information see Usage of free text fields.