altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

UI to configure prefill in Altinn Studio

Open TheTechArch opened this issue 6 years ago • 2 comments

Description

We will have a pre fill page where the user can set pre fill from the Altinn sources Profile, DSF and ER. The user has to have a data model to be able to set pre fill. The user will select source from a dropdown and set specifications in a modal. The user will sett context, source element and data model in the modal.

Following issues related: Issue #1044 Issue #1035 Issue #1164

13.02.2019 - In workshop with pilot service there was set a need for having pre fill which was not connected to the data model - Will be looked at in issue #1164, and will not be solved din this issue

Sketch

https://www.figma.com/file/EG80RgF70SgMyewzKpb5fJ9M/Altinn-Studio?node-id=2075%3A31149

Navigation from/to

This is a page under the menu item "Lage".

Technical considerations

  • We need to have a field list over the data model
  • Do we need some kind of data type validation. (so you dont assign text values to number fields)
  • We need to have a list over pre fill values available to select from.

Acceptance criteria

  • User can set pre fill from the Altinn sources Profile, DSF and ER
  • The user should be able to set up multiple elements from the same source in the same modal.
  • On saving, a list on the pre fill page will populate with the content and the user can get an overview and edit from this list.
  • The user has to have a data model to use pre fill. If not, a error is shown
  • If the user tries to set match a data model element to a pre fill element that has different values (ex. text to integer) an error is shown under the dropdown that was used when the check happened. (ex. if the user fills out pre fill first, and data model second the error is shown under data model dropdown and vice versa)

Tasks

  • [ ] Create prefill page
  • [ ] Create prefill modal content
  • [ ] Create config for available prefill fields

TheTechArch avatar Jan 29 '19 21:01 TheTechArch

#212 needs to be considered when implementing this one.

GGunnar avatar Mar 13 '19 10:03 GGunnar

Setting to post-mvp as our focus will be on developers who needs to code in their service if they would like to use register prefill in MVP.

GGunnar avatar Sep 02 '19 13:09 GGunnar