Altinn / Altinn/app-frontend-react

Allow dynamic expressions in "maxCount" for Repeating groups

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

Description

### Description

For a repeating group, sometimes the maximum number of elements are 1 and sometimes they are unlimited. I would love to have a feature to add this logic directly to the component
```json
"maxCount": [
"if",
[
"equals",
["dataModel", "only1choice"],
true,
],
1,
"else",
999
],
```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

No file or test is identified in the issue. Start by locating repeating-group handling and the maxCount entry point in the TypeScript frontend, then compare the requested expression shape with current behavior; done means maxCount can resolve the shown condition to either 1 or an effectively unlimited value.

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.