Altinn / Altinn/app-frontend-react

Flag for showing hidden field in summary

Open
#1,001 5 comments 0 reactions 1 assignee Claimed by @RonnyB71 View on GitHub
area/summary kind/feature-request
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

Sometimes we need to show a computed value/label for a field in the summary page instead of its data model value. The computed field can be implemented as a hidden field, but then it will not show in the summary page.

It should be possible to set a flag in the layout file so that a hidden field is shown in the summary page. This should work also for groups so it needs to be set in the page layout.

Something like this:
```
{
"id": "someComputedFieldWhichMayBePartOfAGroup",
"type": "Input",
"textResourceBindings": {
"title": "Title"
},
"dataModelBindings": {
"simpleBinding": "ComputedField"
},
"hidden": true,
"showInSummary": true
}
```

### Additional Information

- https://altinn.slack.com/archives/C03DX42K6AY/p1678722640148919

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.