FieldsLabels and Help Texts | Read-Only Fields | Input Fields | Alignment | Saving Space Labels and Help TextsPlease note: The iView Guidelines differ from the IAC Guidelines with respect to the usage of field labels and inspection texts. In iViews inspection texts are not used; use help texts instead. Labels are simple text elements that can be used for descriptive texts within an iView. Labels can wrap and spread over multiple lines. Field labels are labels describing read-only fields, input/output fields or selection elements like dropdown list boxes. Field labels in front of input fields are underlined to indicate the connection between label and field; if the field labels have to be set above the input field (e.g. in narrow iViews), use a smaller font and don't underline the label. The field labels should be as descriptive as possible; e.g. in an iView on searching in a search engine, "Search in" would be a nice label; if a category has to be chosen "Select category" is rather descriptive.
Help texts are special labels that are set behind or, if space is limited, below and left aligned with read-only or input/output fields; they give advice (e.g. examples) on what kind of data to enter into a field, if necessary. Please use only two or three words as possible examples.
Small field labels and help texts can be combined as well:
Sometimes - mainly for seldomly used applications - it may be useful to provide an enriched field label, using a short sentence, thus giving easy access to the functionality:
Note: See Text, Lists, Links for predefined text styles for labels and headers. AccessibilityEnsure that screen readers will identify the connection between a field and its corresponding label. When using the HTMLB library use the label control for labels. When using plain HTML use the HTML label element for labels (see the code example below). The connection between a label and the corresponding field (or other screen element) is established with the "for" statement. Example
Code 1: HTML code for a simple input field with shortcut for the label
Read-Only FieldsRead-only fields are fields where data have been entered either by the user or the system, but which in the current context cannot be changed. Typically read-only fields describe attributes of objects. An inspection text behind the field may explain the meaning of the field value.
Input FieldsInput fields come in several variants:
Examples
AlignmentBasically the rules for alignment and arrangement of fields apply as they are laid down in the SAP Style Guide. We summarize: Fields are triples consisting of
Labels and fields are left-justified and aligned below each other; help texts should be put behind the input field or, if space is insufficient, directly underneath the input field, left aligned with its left border. If there is no space to put the label to the left of the input field, put it above (see above). Text (labels without corresponding fields) is usually left-aligned. There are four possibilies of arranging field labels and help texts in relation to the input field:
Figure 1: Possible combinations of label and help text position in relation to the input field. There can be cases when "primary" and "secondary" field labels can be used, the primary ("valid thru" in the example below) indicating the meaning of the group of fields, the secondary ("Month" and "Year") giving information on what to enter into the fields directly associated. Saving SpaceIf space matters,
Figure 2: Saving space with field names and read-only fields.
Source: SAP iView Guidelines |
||||||||||||||||||||||||