Altinn / Altinn/app-frontend-react

Improve `Address` validation in address component

Open
#4,068 0 comments 0 reactions 0 assignees View on GitHub
kind/feature-request status/for-consideration
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

Currently, the [address component](https://docs.altinn.studio/nb/altinn-studio/v8/reference/ux/components/address/) only validates the postal code, while the address field itself accepts any arbitrary input. This can lead to inconsistent or invalid address data being submitted.

We are currently implementing custom validation against GeoNorge to ensure address accuracy. However, it would be very beneficial if this validation was supported natively within the address component.

Suggested improvement:

- Add built-in validation for the address field (e.g., street name + number)
- Provide real-time validation or autocomplete suggestions based on valid addresses

example:
Image

This would improve data quality and reduce the need for custom validation logic on the consumer side.

Contributor guide

Open the contributing guide

Research direction

Start with the address component implementation corresponding to the linked documentation and trace its existing postal-code validation. Define the validation and autocomplete behavior around the GeoNorge use case; done means the address field supports native valid-address checking without consumer-side custom validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.