---
title: 'Field.InstallmentDay'
description: '`Field.InstallmentDay` is a dropdown-based field for selecting which day of each month a recurring monthly payment is made, such as loan installments or standing orders.'
version: 0.0.0-development
generatedAt: 2026-10-27T16:44:49.701Z
checksum: 090b7d977ba4be5e2c4c04d199a30a4048416c59f443a56985df2f80629d9c40
---

# Field.InstallmentDay

## Import

```tsx
import { Field } from '@dnb/eufemia/extensions/forms'
render(<Field.InstallmentDay />)
```

## Description

`Field.InstallmentDay` is a dropdown-based field for selecting which day of the month a recurring monthly payment is made, such as a loan installment or standing order.

By default it shows days 1–28 plus a "Last day of the month" option. Days 29–31 are excluded because they do not exist in every month. The "Last day of the month" option serves customers paid at month end. Use the `days` prop to override the available days, and `showLastDay={false}` to remove the last day option.

The dropdown lists the available days as plain numbers, while the selected value is shown as a readable ordinal phrase (for example "15th day of the month").

The value type is `number | 'last'`.

There is a corresponding [Value.InstallmentDay](/uilib/extensions/forms/Value/InstallmentDay) component.

## Relevant links

- [Source code](https://github.com/dnbexperience/eufemia/tree/main/packages/dnb-eufemia/src/extensions/forms/Field/InstallmentDay)
- [Docs code](https://github.com/dnbexperience/eufemia/tree/main/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/InstallmentDay)


## Demos

### Default

Days 1–28 with "Last day of the month".


```tsx
render(<Field.InstallmentDay onChange={value => console.log('onChange', value)} />)
```


### With a value


```tsx
render(<Field.InstallmentDay value={15} />)
```


### Constrained days

Use the `days` prop to limit available options to specific days.


```tsx
render(<Field.InstallmentDay days={[1, 5, 10, 15, 20, 25]} onChange={value => console.log('onChange', value)} />)
```


### Without last day of the month

Use `showLastDay={false}` to hide the "Last day of the month" option.


```tsx
render(<Field.InstallmentDay showLastDay={false} onChange={value => console.log('onChange', value)} />)
```


### Constrained days without last day

Combine `days` and `showLastDay={false}` for a compact selection without the "Last day of the month" option.


```tsx
render(<Field.InstallmentDay days={[1, 5, 10, 15, 20, 25]} showLastDay={false} onChange={value => console.log('onChange', value)} />)
```


### Required


```tsx
render(<Form.Handler onSubmit={data => console.log('onSubmit', data)}>
        <Field.InstallmentDay path="/installmentDay" required />
        <Form.SubmitButton top="small" />
      </Form.Handler>)
```


### Disabled


```tsx
render(<Field.InstallmentDay value={10} disabled />)
```


### With help


```tsx
render(<Field.InstallmentDay help={{
  title: 'What is an installment day?',
  content: 'The installment day is the day of the month when the payment is deducted from your account.'
}} />)
```


### Transform to a backend format

Internally the field works with clean values – a number (`1`–`28`) or `'last'`. When the backend expects a different wire format, such as a fixed two-digit day (`'01'`–`'28'`) with a sentinel for the last day of the month, use `transformOut` to convert the value at the API boundary. The converted value is what gets stored in the form data and passed to `onChange` and `onSubmit`. Use `transformIn` to convert incoming data (for example initial values) back to the field's internal value so it displays correctly.


```tsx
// The field works with clean values internally: a number (1–28)
// or 'last'. At the API boundary we convert to the wire format the
// backend expects – a fixed two-digit day ('01'–'28') and a sentinel
// for the last day of the month.
const transformOut = internal => {
  if (internal === 'last') {
    return 'last-day';
  }
  if (typeof internal === 'number') {
    return String(internal).padStart(2, '0');
  }
};

// Convert the backend format back to the field's internal value
// so it displays correctly.
// Convert the backend format back to the field's internal value
// so it displays correctly.
const transformIn = external => {
  if (external === 'last-day') {
    return 'last';
  }
  if (external != null && external !== '') {
    return Number(external);
  }
};
render(<Form.Handler defaultData={{
  installmentDay: '01'
}} onSubmit={data => console.log('onSubmit', data)}>
            <Field.InstallmentDay path="/installmentDay" transformIn={transformIn} transformOut={transformOut} onChange={value => console.log('onChange', value)} />
            <Form.SubmitButton top="small" />
            <Tools.Log top="small" />
          </Form.Handler>);
```

## Properties

### Field-specific properties


```json
{
  "props": {
    "width": {
      "doc": "`small`, `medium` or `large` (default) for predefined standard widths, `stretch` for fill available width.",
      "type": [
        "string",
        "false"
      ],
      "status": "optional"
    },
    "size": {
      "doc": "The sizes you can choose are `small` (1.5rem), `default` (2rem), `medium` (2.5rem) and `large` (3rem). Defaults to `default` / `null`. Consider rather setting field sizes with [Form.Appearance](/uilib/extensions/forms/Form/Appearance/).",
      "type": [
        "\"small\"",
        "\"default\"",
        "\"medium\"",
        "\"large\""
      ],
      "status": "optional"
    },
    "days": {
      "doc": "Constrains which days are available for selection. When not provided, days 1–28 are shown. The given order is kept. If the current `value` is not among them, it is still shown and added to the list.",
      "type": "Array<number>",
      "status": "optional"
    },
    "showLastDay": {
      "doc": "Set to `false` to remove the \"Last day of the month\" option from the list. Defaults to `true`. The option is still shown when the current `value` is `'last'`.",
      "type": "boolean",
      "status": "optional"
    }
  }
}
```


### General properties


```json
{
  "props": {
    "value": {
      "doc": "Source data value for the field. Will take precedence over the path value given in the data context.",
      "type": [
        "number",
        "'last'"
      ],
      "status": "optional"
    },
    "defaultValue": {
      "doc": "Default source data value for the field. Will not take precedence over the path value given in the data context.",
      "type": [
        "number",
        "'last'"
      ],
      "status": "optional"
    },
    "path": {
      "doc": "JSON Pointer for where the data for the field is located in the source dataset (when using Form.Handler or DataContext). The `path` will also be set as the `name` attribute for the [string](/uilib/extensions/forms/base-fields/String/)-field.",
      "type": "string",
      "status": "optional"
    },
    "info": {
      "doc": "Info message shown below / after the field by default. Use `statusPosition=\"above\"` to show status messages above the field. When provided as a function, the function will be called with the current value as argument. The second parameter is an object with `{ conditionally, getValueByPath, getFieldByPath }`. To show the message first after the user has interacted with the field, you can call and return `conditionally` function with a callback and with options: `conditionally(() => 'Your message', { showInitially: true })`.",
      "type": [
        "React.ReactNode",
        "Array<React.ReactNode>",
        "function"
      ],
      "status": "optional"
    },
    "warning": {
      "doc": "Warning message shown below / after the field by default. Use `statusPosition=\"above\"` to show status messages above the field. When provided as a function, the function will be called with the current value as argument. The second parameter is an object with `{ conditionally, getValueByPath, getFieldByPath }`. To show the message first after the user has interacted with the field, you can call and return `conditionally` function with a callback and with options: `conditionally(() => 'Your message', { showInitially: true })`.",
      "type": [
        "React.ReactNode",
        "Array<React.ReactNode>",
        "function"
      ],
      "status": "optional"
    },
    "error": {
      "doc": "Error message shown below / after the field. When provided as a function, the function will be called with the current value as argument. The second parameter is an object with `{ conditionally, getValueByPath, getFieldByPath }`. To show the message first after the user has interacted with the field, you can call and return `conditionally` function with a callback and with options: `conditionally(() => 'Your message', { showInitially: true })`.",
      "type": [
        "Error",
        "FormError",
        "Array<Error | FormError>",
        "function"
      ],
      "status": "optional"
    },
    "disabled": {
      "doc": "Set `true` to show the field but without the possibility of changing the value.",
      "type": "boolean",
      "status": "optional"
    },
    "emptyValue": {
      "doc": "The value to use (in `onChange` events etc) when emptying the field. Makes it possible for instance to provide `undefined` instead of an empty string when clearing the content of a text input.",
      "type": [
        "number",
        "'last'",
        "undefined"
      ],
      "status": "optional"
    },
    "required": {
      "doc": "When set to `true`, the field will give an error if the value fails the required validation. When set to `false`, the field will not be required, but will add a \"(optional)\" suffix to the label.",
      "type": "boolean",
      "status": "optional"
    },
    "labelSuffix": {
      "doc": "Will append additional text to the label, like \"(optional)\", displayed in a secondary text color. When using `inheritLabel`, the suffix will not be inherited.",
      "type": "React.ReactNode",
      "status": "optional"
    },
    "schema": {
      "doc": "Custom JSON Schema for validating the value.",
      "type": "object",
      "status": "optional"
    },
    "validateInitially": {
      "doc": "Set to `true` to show validation based errors initially (from given value-property or source data) before the user interacts with the field.",
      "type": "boolean",
      "status": "optional"
    },
    "validateUnchanged": {
      "doc": "Set to `true` to show validation based errors when the field is touched (like focusing a field and blurring) without having changed the value. Since the user did not introduce a new error, this will apply when the value was initially invalid based on validation.",
      "type": "boolean",
      "status": "optional"
    },
    "validateContinuously": {
      "doc": "Set to `true` to show validation based errors continuously while writing, not just when blurring the field.",
      "type": "boolean",
      "status": "optional"
    },
    "errorMessages": {
      "doc": "Custom error messages for each type of error, overriding default messages. The messages can be a `React.ReactNode` or a string.",
      "type": "object",
      "status": "optional"
    },
    "onChangeValidator": {
      "doc": "Custom validator function where you can return `undefined`, `Error`, `FormError` or an Array with either several other validators or several `Error` or `FormError`. It is triggered on every change done by the user, and runs during form submit by default. The function can be either asynchronous or synchronous. The first parameter is the value, and the second parameter returns an object containing { errorMessages, connectWithPath, validators }. Use `withValidatorOptions(validator, { runOnSubmit: 'never' })` to keep it from running during form submit, or `'when-changed'` to run it only when the value has changed since the validator last ran. Object and array values are compared by reference. If an asynchronous validator does not settle within `asyncSubmitTimeout` (30 seconds by default), the field clears its pending state, so a Promise that never settles does not leave the field stuck. A submit waiting for that field is canceled and must be retried.",
      "type": "function",
      "status": "optional"
    },
    "onBlurValidator": {
      "doc": "Custom validator function where you can return `undefined`, `Error`, `FormError` or an Array with either several other validators or several `Error` or `FormError`. It is triggered when the user leaves a field (e.g., blurring a text input or closing a dropdown), and runs during form submit by default. The function can be either asynchronous or synchronous. The first parameter is the value, and the second parameter returns an object containing { errorMessages, connectWithPath, validators }. Use `withValidatorOptions(validator, { runOnSubmit: 'never' })` to keep it from running during form submit, or `'when-changed'` to run it only when the value has changed since the validator last ran. Object and array values are compared by reference. If an asynchronous validator does not settle within `asyncSubmitTimeout` (30 seconds by default), the field clears its pending state, so a Promise that never settles does not leave the field stuck. A submit waiting for that field is canceled and must be retried.",
      "type": "function",
      "status": "optional"
    },
    "transformIn": {
      "doc": "Transforms the `value` before it's displayed in the field (e.g. input).",
      "type": "function",
      "status": "optional"
    },
    "transformOut": {
      "doc": "Transforms the value before it gets forwarded to the form data object (context) or returned as the `onChange` value parameter. The first parameter is the internal value. Some fields do support a second parameter, like the SelectCountry, where the country object is given.",
      "type": "function",
      "status": "optional"
    },
    "label": {
      "doc": "Label text displayed above the field. Most fields already have a default label, so check the field translations for an existing label entry. Only set `label` when you need to override the default.",
      "type": "string",
      "status": "optional"
    },
    "labelDescription": {
      "doc": "Supporting text displayed below the label by default. Set `labelDescriptionInline` to `true` to display it on the same line as the label.",
      "type": "string",
      "status": "optional"
    },
    "labelDescriptionInline": {
      "doc": "If `true`, the `labelDescription` will be displayed on the same line as the label.",
      "type": "boolean",
      "status": "optional"
    },
    "labelSrOnly": {
      "doc": "Use `true` to make the label only readable by screen readers.",
      "type": "boolean",
      "status": "optional"
    },
    "labelSize": {
      "doc": "Define the font-size of the label based on the [font-size](/uilib/typography/font-size/) table.",
      "type": [
        "\"medium\"",
        "\"large\""
      ],
      "status": "optional"
    },
    "help": {
      "doc": "Provide help content for the field using `title` and `content` as a string or `React.ReactNode`. Additionally, you can set `open` to `true` to display the inline help, set `openOnFind` to `true` to open matching inline help from browser find-in-page, set the `breakout` property to `false` to disable the breakout of the inline help content, set `outset` to `false` to display the help text inline (inset) instead of the default outset behavior, or use `renderAs` set to `dialog` to render the content in a [Dialog](/uilib/components/dialog/) (recommended for larger amounts of content).",
      "type": "object",
      "status": "optional"
    },
    "hideHelpButton": {
      "doc": "Set `true` when you render the inline help button outside the label (e.g. inside a checkbox suffix) so FieldBlock skips drawing the default label help button.",
      "type": "boolean",
      "status": "optional"
    },
    "statusPosition": {
      "doc": "Controls where status messages (`error`, `warning`, `information`) are visually shown. Use `below` (default) or `above`.",
      "type": [
        "\"below\"",
        "\"above\""
      ],
      "status": "optional"
    },
    "layout": {
      "doc": "Layout for the label and input. Can be `horizontal` or `vertical`.",
      "type": [
        "\"horizontal\"",
        "\"vertical\""
      ],
      "status": "optional"
    },
    "layoutOptions": {
      "doc": "Use this to set additional options for the `horizontal` layout, e.g. `{ width: \"medium\" }`. You can also use a custom width `{number}rem`. Instead of a width, you can use a min/max width, e.g. `{ minWidth: \"6rem\", maxWidth: \"12rem\" }`.",
      "type": "object",
      "status": "optional"
    },
    "width": {
      "doc": "Will set the width for the whole block. Use `small`, `medium`, `large` for predefined standard widths. You can also set a custom width `{number}rem` or use `stretch` or `false`.",
      "type": [
        "string",
        "false"
      ],
      "status": "optional"
    },
    "contentWidth": {
      "doc": "Will set the width for its contents. Use `small`, `medium`, `large` for predefined standard widths. You can also set a custom width `{number}rem` or use `stretch` or `false`.",
      "type": [
        "string",
        "false"
      ],
      "status": "optional"
    },
    "[Space](/uilib/layout/space/properties)": {
      "doc": "Spacing properties like `top` or `bottom` are supported.",
      "type": [
        "string",
        "object"
      ],
      "status": "optional"
    }
  },
  "valueType": [
    "number",
    "'last'"
  ],
  "omit": [
    "width",
    "contentWidth"
  ]
}
```


## Translations


```json
{
  "locales": [
    "da-DK",
    "en-GB",
    "nb-NO",
    "sv-SE"
  ],
  "entries": {
    "Field.errorPattern": {
      "nb-NO": "Du må skrive inn en gyldig verdi.",
      "en-GB": "You must enter a valid value.",
      "sv-SE": "Du måste ange ett giltigt värde.",
      "da-DK": "Du skal indtaste en gyldig værdi."
    },
    "Field.errorRequired": {
      "nb-NO": "Dette feltet må fylles ut.",
      "en-GB": "This field is required.",
      "sv-SE": "Detta fält måste fyllas i.",
      "da-DK": "Dette felt skal udfyldes."
    },
    "Field.errorSummary": {
      "nb-NO": "Feil som må rettes:",
      "en-GB": "Please correct the following errors:",
      "sv-SE": "Fel som måste åtgärdas:",
      "da-DK": "Felter der skal rettes:"
    },
    "Field.errorSummaryTitle": {
      "nb-NO": "Feil som må rettes",
      "en-GB": "Please correct the following errors",
      "sv-SE": "Fel som måste åtgärdas",
      "da-DK": "Felter der skal rettes"
    },
    "Field.optionalLabelSuffix": {
      "nb-NO": "(valgfritt)",
      "en-GB": "(optional)",
      "sv-SE": "(valfritt)",
      "da-DK": "(valgfrit)"
    },
    "Field.stateSummary": {
      "nb-NO": "Oppsummering:",
      "en-GB": "Summary:",
      "sv-SE": "Sammanfattning:",
      "da-DK": "Oversigt:"
    },
    "InstallmentDay.dayDisplay": {
      "nb-NO": "{day} dagen i måneden",
      "en-GB": "{day} day of the month",
      "sv-SE": "{day} dagen i månaden",
      "da-DK": "{day} dag i måneden"
    },
    "InstallmentDay.errorRequired": {
      "nb-NO": "Du må velge en avdragsdag.",
      "en-GB": "You must select an instalment day.",
      "sv-SE": "Du måste välja en dragdag.",
      "da-DK": "Du skal vælge en trækdag."
    },
    "InstallmentDay.label": {
      "nb-NO": "Avdragsdag",
      "en-GB": "Instalment day",
      "sv-SE": "Dragdag",
      "da-DK": "Trækdag"
    },
    "InstallmentDay.lastDayLabel": {
      "nb-NO": "Siste dagen i måneden",
      "en-GB": "Last day of the month",
      "sv-SE": "Sista dagen i månaden",
      "da-DK": "Sidste dag i måneden"
    },
    "InstallmentDay.placeholder": {
      "nb-NO": "Velg dag",
      "en-GB": "Select day",
      "sv-SE": "Välj dag",
      "da-DK": "Vælg dag"
    }
  }
}
```

## Events


```json
{
  "props": {
    "onChange": {
      "doc": "Will be called on value changes made by the user, with the new value as argument. When an `async` function is used, the corresponding [FieldBlock](/uilib/extensions/forms/create-component/FieldBlock/) will show an indicator on the field label. You can return `{ success: 'saved' } as const` to show a success symbol, or an error or an object with these keys `{ info: 'Info message', warning: 'Warning message', error: Error('My error') } as const`. The second parameter is an object that e.g. contains `properties` (all given `Field.*` properties). If an `async` function does not settle within `asyncSubmitTimeout` (30 seconds by default), the field clears its pending state, so a Promise that never settles does not leave the field stuck. A submit waiting for that field is canceled and must be retried.",
      "type": "(value) => void",
      "status": "optional"
    },
    "onFocus": {
      "doc": "Will be called when the component gets into focus. Like clicking inside a text input or opening a dropdown. Called with active value as argument. The second parameter is an object that e.g. contains `properties` (all given `Field.*` properties).",
      "type": "(value) => void",
      "status": "optional"
    },
    "onBlur": {
      "doc": "Will be called when the component stops being in focus. Like when going to next field, or closing a dropdown. Called with active value as argument. The second parameter is an object that e.g. contains `properties` (all given `Field.*` properties).",
      "type": "(value) => void",
      "status": "optional"
    },
    "onStatusChange": {
      "doc": "Called whenever the status messages (info, warning or error) gets visible or changes. Receives the current `{ info, warning, error }` object.",
      "type": "({ info?, warning?, error? }: FieldStatus) => void",
      "status": "optional"
    }
  }
}
```
