Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validering ved hjelp av dynamikk #726

Closed
Tracked by #339 ...
StianVestli opened this issue Dec 8, 2022 · 4 comments · Fixed by #1540
Closed
Tracked by #339 ...

Validering ved hjelp av dynamikk #726

StianVestli opened this issue Dec 8, 2022 · 4 comments · Fixed by #1540
Assignees
Labels
area/logic related to logic/dynamics/expressions fe-v4 Issues to be solved before v4 goes gold feature-complete Features needed for parity with Altinn 2 (target: June 2023) kind/feature-request New feature or request org/ssb Issues relevant for Statistisk sentralbyrå.

Comments

@StianVestli
Copy link

StianVestli commented Dec 8, 2022

Description

Vi ønsker en enklere måte å kunne sette opp valideringer på i skjema.
I dag må dette sette via validation eventet i C#, noe som gir mye og uoversiktlig kode, som igjen gir oss på sikt mye teknisk gjeld.
På samme måte som den nye dynamikken så ønsker vi en lignende løsning for valideringer.
Man må kunne sette opp regler som validere som true på lik linje som dynamikken, man bør kunne sjekke på et datamodellfelt eller en componentid.

  • Valideringen skal ikke skje hvis felte har hidden=true.
  • Man skal kunne benytte samme kontroller som ved dynamikk, dvs. "or", "equal" osv.
  • Man må kunne ha muligheten til å linke inn et tekst id for å kunne ha en custom feilmeldingstekst.
  • Man bør kunne styre om det er en hard kontroll eller en mjuk (error/warning)
  • Man bør antagelig kunne si hvilke componentid som skal markers som feil, feks som ved summering av tall fra flere felter.
  • Støtte warning og error
  • Implementere alle metoder https://docs.altinn.studio/app/development/logic/expressions/

Additional Information

Blocked by: #1182

Includes cleanup in validation.ts ref. #377

@StianVestli StianVestli added the kind/feature-request New feature or request label Dec 8, 2022
@rvessb
Copy link

rvessb commented Dec 12, 2022

org/ssb

@FinnurO FinnurO added the org/ssb Issues relevant for Statistisk sentralbyrå. label Dec 12, 2022
@olemartinorg olemartinorg moved this to Todo in Issues SSB Dec 12, 2022
@FinnurO
Copy link

FinnurO commented Dec 15, 2022

Image

Eksempler fra en SSB tjeneste i A2. Bruker hjelpefelt, @my.

Refererer til valideringsmelding, men usikker på hva screen tip er i A3.

@FinnurO FinnurO added the area/logic related to logic/dynamics/expressions label Dec 15, 2022
@StianVestli
Copy link
Author

Eksempel på enkel validering er feks ved to datovelgere å kunne legge på sjekk at den ene datoen skal være før den andre.

This was referenced Feb 24, 2023
@RonnyB71 RonnyB71 removed the status/draft Status: When you create an issue before you have enough info to properly describe the issue. label Jun 9, 2023
@bjosttveit bjosttveit self-assigned this Jun 9, 2023
@bjosttveit bjosttveit moved this to 👷 In Progress in Team Apps Jun 9, 2023
@olemartinorg olemartinorg moved this from Todo to In Progress in Issues SSB Jun 13, 2023
@bjosttveit bjosttveit mentioned this issue Jun 26, 2023
21 tasks
@bjosttveit bjosttveit moved this from 👷 In Progress to 📈 Todo in Team Apps Jun 27, 2023
@bjosttveit bjosttveit removed their assignment Jun 28, 2023
@bjosttveit bjosttveit self-assigned this Aug 10, 2023
@bjosttveit bjosttveit moved this from 📈 Todo to 👷 In Progress in Team Apps Aug 10, 2023
@bjosttveit bjosttveit moved this from 👷 In Progress to 📈 Todo in Team Apps Sep 4, 2023
@bjosttveit bjosttveit moved this from 📈 Todo to ⚠️ Blocked in Team Apps Sep 4, 2023
@bjosttveit bjosttveit moved this from ⚠️ Blocked to 👷 In Progress in Team Apps Sep 18, 2023
@olemartinorg olemartinorg added the fe-v4 Issues to be solved before v4 goes gold label Sep 25, 2023
@bjosttveit bjosttveit moved this from 👷 In Progress to ⚠️ Blocked in Team Apps Oct 3, 2023
@bjosttveit bjosttveit moved this from ⚠️ Blocked to 🔎 Review in Team Apps Oct 4, 2023
@bjosttveit bjosttveit mentioned this issue Oct 4, 2023
19 tasks
@bjosttveit bjosttveit moved this from 🔎 Review to 🧪 Test in Team Apps Oct 9, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues SSB Oct 9, 2023
@tjololo tjololo moved this from 🧪 Test to ✅ Done in Team Apps Oct 12, 2023
@RonnyB71 RonnyB71 mentioned this issue Nov 22, 2023
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logic related to logic/dynamics/expressions fe-v4 Issues to be solved before v4 goes gold feature-complete Features needed for parity with Altinn 2 (target: June 2023) kind/feature-request New feature or request org/ssb Issues relevant for Statistisk sentralbyrå.
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants