Altinn / Altinn/app-frontend-react
Feil melding ved bruk av restriksjon length i xsd
- 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

## Additional info
Win 10 Pro, Chrome
Contributor 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