Altinn / Altinn/app-frontend-react

Can set values with dynamic expressions

Open
#2,983 1 comment 0 reactions 0 assignees View on GitHub
area/logic kind/feature-request
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

The use case here is with the FileUploead component's `minCount/minNumberOfAttachments` properties. In cases where the component is conditionally required, we run into issues with the validation of this component. If the minCount is 0, the user is allowed to submit a form with no file attachments regardless of whether the component is required. If the minimum is 1, the user cannot submit a form without attachments, even though the component is optional.

Can it be possible to set these values by writing dynamic expressions?

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the FileUpload component and its minCount/minNumberOfAttachments properties, then trace how they participate in validation. Done means these values can use dynamic expressions and conditional required states allow or reject empty submissions correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.