Knowledge Base

Search documentation by Keyword

4.2.04 label

A label is used to display text without any input field. There is no data involved with a label.

Two labels on a form.

{
“display”: “Last year:”,
“tooltip”: “”,
“fieldname”: “”,
“length”: 0,
“inputtype”: “label”,
“block”: 1,
“newline”: true,
“labelwidth”: 3,
“fieldwidth”: 4
},
{
“display”: “Current Year:”,
“tooltip”: “”,
“fieldname”: “”,
“length”: 0,
“inputtype”: “label”,
“block”: 1,
“newline”: false,
“labelwidth”: 0,
“fieldwidth”: 4
},

  • display: text to display as label.
  • inputtype: label.
  • block: must be displayed in which block.
  • newline: true of false.
  • labelwidth: number of empty columns before the text of the label. This is to position the text where you want.
  • fieldwidth: number of columns that is used by the label itself.

The tags tooltip, fieldname and lenght can be send, but they are not used by BOA.

For the second label ‘Current year’ the labelwidth is set to 0. See the above screenshot how both labels are positioned. By using a labelwidth of 3 for the first label, the label itseld is positioned above the data column. And will stay there when resizing the screen.