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

Pre-chosen radiobutton does not trigger dynamics #201

Open
Sindrir opened this issue Nov 17, 2020 · 2 comments
Open

Pre-chosen radiobutton does not trigger dynamics #201

Sindrir opened this issue Nov 17, 2020 · 2 comments
Labels
bug/c1 kind/bug Something isn't working org/nbib

Comments

@Sindrir
Copy link
Contributor

Sindrir commented Nov 17, 2020

Describe the bug

When instantiating an app with pre-chosen radiobutton that is supposed to trigger a dynamic, the dynamic is not present.

To Reproduce

Steps to reproduce the behavior:

  1. Go to an app with pre-chosen radiobutton as dynamic to show some field
  2. See error

Expected behavior

Expect that the dynamic is already done when instantiating an app.

Screenshots

https://streamable.com/exo1xn

Additional info

Add any other relevant context info about the problem here.
For example OS (Windows, MacOS, iOS), browser (Chrome, Firefox, Safari), device (iPhone, laptop), screen-size, etc.

@lvbachmann
Copy link
Contributor

@Febakke Should pre-chosen radio buttons be allowed in the first place?

@haakemon haakemon transferred this issue from Altinn/altinn-studio Jun 2, 2022
@olemartinorg
Copy link
Contributor

This should not be an issue with dynamic expressions. As mentioned in #141 (comment), I believe the preSelectedOptionsIndex functionality is subtly broken by design, and prefilling should be preferred. @Sindrir Did you find a solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/c1 kind/bug Something isn't working org/nbib
Projects
Status: No status
Development

No branches or pull requests

5 participants