Altinn / Altinn/app-frontend-react

Feil melding ved bruk av restriksjon length i xsd

Open
#282 2 comments 0 reactions 0 assignees View on GitHub
area/validation bug/c1 kind/bug
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

## Describe the bug
For et felt med restriksjon length=9 i XSD, får man melding "Bruk 9 eller flere tegn" hvis feltet inneholder færre enn 9 tegn, og melding "Bruk 9 eller færre tegn" hvis feltet inneholder flere enn 9 tegn.

## To Reproduce
Steps to reproduce the behavior:
1. Start https://brg.apps.tt02.altinn.no/brg/tilda-godkjenn-tjenestevilkaar/
2. Legg inn et tegn i feltet for organisasjonsnummer
3. Se melding
4. Legg inn 10 tegn i feltet for organisasjonsnummer
5. Se melding

## Expected behavior
Forventer melding om "Antall tillatte tegn er 9" jf standard feilmeldinger listet i https://altinn.github.io/docs/altinn-studio/app-creation/logic/validation/

## Screenshots
Snag_54d357e
Snag_54d7566
Snag_54d95a0

## Additional info
Win 10 Pro, Chrome

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the length=9 validation in the linked Tilda service-terms app, using the one- and ten-character inputs described. Compare the observed Norwegian messages with the standard validation messages in the linked Altinn documentation; done means both invalid inputs report that the allowed number of characters is 9.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.