Import
import { Field } from '@dnb/eufemia/extensions/forms'render(<Field.BankAccountNumber />)
Description
Field.BankAccountNumber is a wrapper component for the input of strings, with user experience tailored for bank account values.
This field is meant for Norwegian bank account numbers, and therefor takes a 11-digit string as a value. A Norwegian bank account number can have a leading zero, which is why this value is a string and not a number. In addition, we validate 0000 00 00000 as invalid.
More info can be found at Wikipedia.
There is a corresponding Value.BankAccountNumber component.
Relevant links
Validators
Internal validators exposed
Field.BankAccountNumber expose the bankAccountNumberValidator validator through its onChangeValidator and onBlurValidator property, take a look at this demo.
The bankAccountNumberValidator validator, validates if the bank account number provided is a Norwegian bank account number or not.