Basic

Basic fields that just store some information or do not require much, if any, configuration.

Integer

Capable of containing whole numbers (no decimals).
Due to technical limitations the number can't be smaller than -2.147.483.648 or larger than 2.147.483.647.

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

Developer info

Decimal

Numbers with decimal comma

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Mangler forklaring af "Use category styling" samt link til side om hvad category betyder i platformen]

Default precision is 2, if nothing else is set.

Developer info

Percentage

This field is used to show a bar in list views as seen below. It should only be used with whole percentages between 0 and 100. When using this field with formulas the value is not automatically divided by 100, which means that a value of 5% is interpreted as "5".

Note that the policy "showPercentageAsBar" must be true for the field to be rendered as a bar. See Rendering policies

Properties

User interface

Field in show mode

image.png

Field in list mode

image.png

Field in edit mode

image.png

Configuration

image.png

Decimal/ precision does not work on this field

Defining a unit name replaces the default unit of "%".

Developer info

Yes/No

Check box. Yes/No. The values can be shown with other words or icons

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

As of version 9943 adding a TRUE value text, when displaying the field as a checkbox, the value will be used as a label for the checkbox.

[Description of configs]

Developer info

Serial

Unique serial number

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Response

Interval in questionnaire

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Enumeration

Named numbers ex. Grades

Properties

User interface

Field in show mode

[INSERT IMAGE]

Field in edit mode

[INSERT IMAGE]

Configuration

image.png

Required:

Options:

 Option 1 #red
 Option 2 #blue
 ...
 en:Option 1
 Option 2
 Option 3
 ge:Wahl 1
 Wahl 2
 Wahl 3

Developer info

Symbol

Use icons as status flow and categories

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Date

Date with calendar look-up

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

Show mode

The date will be formatted as defined in format option.
Default formatting is: dd/mm/yyyy

Edit mode

The date field will display a textbox. On activating the field a date selector will popup below the field.
Normal input format is: dd/mm/yyyy

The values for dd and mm can be either 1 or two digits - examples

The separator method is also free: "/" or "-" will do

Relative date

The date output can be changed to output the number of dates between the stored date and "now".
To do this input two colors, separated by a space, in the formatting config.
eg. red green.
This will change the list-output of the field to be a number of days.
If the number is negative, the date is in the past, if it is positive the date is in the future.
The two colors chosen will be be added as text-colors.

Other options

The date field can be set to strict or loose date parsing:

The loose option is activated by setting the configuration (policy): doSmartDateInput

Styling relative dates

As of version 11476.
The relative date output has the class relativeDate and depending on wether the date is before or after now, it has the class before or after.
To spice up the style of this output, you can add this snippit to your stylesheet.

.relativeDate.after {
    color: #096f58 !important;
    background: #7efbb7;
    padding: 0px 5px;
    border-radius: 3px;
}

.relativeDate.before {
    color: #a7175f !important;
    background: #ffc9d3;
    padding: 0px 5px;
    border-radius: 3px;
}

To limit the styling to a singe entity, add the style in the headers and scripts for that entity.

Developer info

Time

Selector for point in time

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Datetime

Date with calendar/time look-up

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Month

Choice of month, including translation

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

No configuration required for this field type

Developer info

Year

Choice of year

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

No configuration required for this field type

Developer info

Text

A single line of a text (ex. Name).
The text can't be longer than 255 characters.

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Text multiline

Multiple lines of text (ex. Adresses)

Properties

User interface

Field in show mode

[INSERT IMAGE]

Field in edit mode

[INSERT IMAGE]

Configuration

image.png

[Description of configs]

Developer info

Notepad

WYSIWYG Editor shown in the interface

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Hierachy/tree

Hierarchy of values

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

Email

User email-adress

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

No configuration required for this field type

To make the field enforce that the input is an actual email, add the following regex as validation.

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

Developer info

Website (URL)

Stores an internet address.

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

[INSERT IMAGE]

One configuration is available.
If Configuration1 is equal to "1", then the value will be displayed as a link in lists. The link will open in a new tab.

Developer info

Unique key (GUID)

Global Unique ID (GUID) for records, inserted automatically on record creation.

Properties

User interface

Field in show mode

[INSERT IMAGE]

Due to its nature this field has no special editing mode.

Configuration

[INSERT IMAGE]

[Description of configs]

Developer info

Text with lookup

A single line text with look-up in exciting values

Properties

User interface

Field in show mode

[INSERT IMAGE]

Field in edit mode

[INSERT IMAGE]

Configuration

image.png

[Description of configs]

Developer info

Phone

Phone number with the possibility for look-up

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

CPR nummer

Validation of control digits with the personal identification number

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

image.png

[Description of configs]

Developer info

CVR nummer

CVR number with look-up in the CVR register

Properties

User interface

Field in show mode

image.png

Field in edit mode

image.png

Configuration

No configuration required for this field type

Developer info

Static content

A static message/information, that supports translation.

Properties

User interface

Field in show mode

[INSERT IMAGE]

Due to its nature this field has no special editing mode.

Configuration

image.png

[Description f configs]

Developer info

Static button

Button with functionality

Properties

User interface

Field in show mode

[INSERT IMAGE]

Due to its nature this field has no special editing mode.

Configuration

image.png

[Description of configs]

Developer info

Static message

Notification on top of the page

Properties

User interface

Field in show mode

image.png

Due to its nature this field has no special editing mode.

Configuration

image.png

[Description of configs]

Developer info

Static script

Execution of the code when changing other boxes

Properties

User interface

This field is not displayed as a normal field.

Due to its nature this field has no special editing mode.

Configuration

image.png

[Description of configs]

Developer info

Script function

Execution of javascript with value insertion into other fields

Properties

User interface

This field is not displayed as a normal field, nor is the value of it saved and available to codeunits/sql-statements.

Due to its nature this field has no special editing mode.

Configuration

This field requires configuration before deployment.

image.png

Input

Is a list of fields, which values will be available as variables in the following function.
If a name contains "!", it will be loaded as a decimal.
So this configuration:

FIELD1 FIELD2! !FIELD3

Results is this code:

let FIELD1 = getValue("FIELD1")
let FIELD2 = getDecimal("FIELD2")
let FIELD3 = getDecimal("FIELD3")

Plus all those fields will trigger a re-evaluation of this field, whenever they are updates/changed.

Code (Function)

The actual javascript that modifies the data collected from the inputs.
Is pasted into a function, so should only contain lines of code.
Must have a return statement!
Sample:

return FIELD2 * FIELD3;

Output

The field to set the value of, with the return value of the final function.
The output of the function will also be the value of this field, but will not be saved, as this field is virtual and only works in the frontend.

Developer info

Priority

[DESCRIPTION]

Properties

User interface

Field in show mode

[INSERT IMAGE]

Field in edit mode

[INSERT IMAGE]

Configuration

[INSERT IMAGE]

[Eventuel beskrivelse af configs]

Developer info

Currency

UNDER DEVELOPMENT

[DESCRIPTION]

Properties

User interface

Field in show mode

[INSERT IMAGE]

Field in edit mode

[INSERT IMAGE]

Configuration

[INSERT IMAGE]

[Eventuel beskrivelse af configs]

Developer info