Vedleggskomponent - valgfri #1763
Labels
area/ui-editor
Area: Related to the designer tool for assembling app UI in Altinn Studio.
kind/bug
Used when there is a defect / something is not working as it should.
status/ready-for-specification
Status: Used for issues that are ready for functional decription og detailed design.
Milestone
Describe the bug
Vedleggskomponenten står med valgfri etter ledeteksten. Men det er ingen steder vi kan sette om filvedlegg er valgfritt eller ikke. På komponenten kan man sette maks antall filer, men ikke minimum.
Expected behavior
Mulig å sette at det må leveres filvedlegg, og evt et minste antall.
Screenshots
Additional info
Windows 10 Pro, Chrome
Fix
We should add an input field with minimum number of attachments uploaded. If this value is more than 0, the attachment component is required by the end user and if the value is 0 the "valgfri" label should be applied to the component. A hard validation needs to be implemented in the application stopping the end user from continuing if they have not uploaded enough attachments. Default value for max and min number of attachments should be 1.
Acceptance criterea
Sketch
UI-editor
https://www.figma.com/file/O7Oqx6p9ZUZBt8DFBNanrymh/MVP-2-Altinn-Studio?node-id=1262%3A14124
Application
https://www.figma.com/file/O7Oqx6p9ZUZBt8DFBNanrymh/MVP-2-Altinn-Studio?node-id=1465%3A0
The text was updated successfully, but these errors were encountered: