Altinn / Altinn/app-frontend-react

Dynamics for property "PreselectedOptionIndex"

Open
#3,413 0 comments 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

Årsregnskap desires an opportunity to define preselectedOptionIndex based on a condition related to another datamodel.

Example: preselect valuta (RadioButton-component in subform) with "NOK" (e.g. [0]) in case orgForm != "NUF" (mainform).

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing PreselectedOptionIndex handling and the dynamics path for RadioButton components in subforms. Reproduce the example using a mainform condition such as orgForm != "NUF" and NOK as the desired selection; done means the option is preselected only when the condition holds.

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.