Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stranded when Edit-button in Summary2 changes visibility of page #2869

Open
xmrsa opened this issue Jan 3, 2025 · 0 comments
Open

Stranded when Edit-button in Summary2 changes visibility of page #2869

xmrsa opened this issue Jan 3, 2025 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@xmrsa
Copy link

xmrsa commented Jan 3, 2025

Description of the bug

If you have a Summary2 component on a page "C", and you press the Edit-button to come back to page "B" to change the element, you risk "getting stuck" in the form. From page "B" there is a button "Back to summary" ("Tilbake til sammendrag") that brings you back to page "C". The problem occurs when a change on page "B" causes page "C" to be hidden. The "Back to summary"-button does not work, because there is no page to go back to. There isn't a "Next"-button on page "B" either, so the only way to continue filling out the form is by pushing the "Previous"-button, and then navigate forward again by pressing the "Next"-button from a previous page "A".

This situation will occur if you f.ex. have a radiobutton-question on page B that causes page C to be hidden.

I would have expected that the "Back to summary"-button would be hidden (or the functionality and text changed) and replaced with a "Next"-button, when the page you came from is hidden.

Steps To Reproduce

  1. Create a summary2-component on a page that will be hidden if you change the element shown the summary
  2. Press the "Edit"-button
  3. Change the answer so the page with the summary-component is "hidden"
  4. Try pressing the "Back to summary"-button.

Additional Information

Connected to the discussion in this thread: https://altinn.slack.com/archives/C02EJ9HKQA3/p1734603772652409

@xmrsa xmrsa added the kind/bug Something isn't working label Jan 3, 2025
@nkylstad nkylstad transferred this issue from Altinn/altinn-studio Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant