Altinn / Altinn/app-frontend-react

Dynamically manage rows in a subform component

Open
#2,654 2 comments 0 reactions 0 assignees View on GitHub
kind/user-story org/ssb squad/data status/draft status/for-consideration
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

Rows in the subform component is just a representation of the underlying subforms in the application. By default the user can get a **Add button** allowing them to add more subforms to the list. However, sometimes the number of subforms and the type of data within are known and can be calculated based on values in the main form. And further more, the user should not be allowed to add or delete subforms manually. In these cases the subforms are created programatically and presented to the user giving them the option to edit and complete them.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names only the subform component; start there and trace how rows and the Add/delete controls are managed. Because no tasks, acceptance criteria, files, or tests are provided, first define the expected API and completion checks for programmatically created rows while keeping them editable and disabling manual add/delete.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.