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

Validate "required" expressions on fileUpload components #771

Open
ivarne opened this issue Sep 12, 2024 · 0 comments
Open

Validate "required" expressions on fileUpload components #771

ivarne opened this issue Sep 12, 2024 · 0 comments
Labels
area/validation Custom validations/validation messages kind/feature-request New feature or request

Comments

@ivarne
Copy link
Member

ivarne commented Sep 12, 2024

Description

Hei,
Er det mulig å gjøre filopplasting/vedlegg påkrevd dersom annet felt ikke er utfylt?
Dersom et stort tekstfelt er tomt, skal fil-vedlegg være obligatorisk (= minst en fil lastet opp).
Har konfigurert fil-vedlegg komponenten med min 0 og maks er 1, og lagt på dynamisk regel som gjør filvedlegg påkrevd dersom tekstfelt er tomt.
Indikator for obligatorisk "*" på filvedlegget endrer seg, men ved forsøk på innsending for jeg ikke beskjed om at fil mangle

It should be possible to extend the required validation to ensure that the correct number of files exist for a file upload component.

Note that the component also have

 "maxNumberOfAttachments": 1,
 "minNumberOfAttachments": 1

which should be validated as well.

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/validation Custom validations/validation messages kind/feature-request New feature or request
Projects
Status: 📈 Todo
Development

No branches or pull requests

1 participant