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

Can't set default value for a radio (in actions) #3659

Open
4 of 11 tasks
pjmuller opened this issue Feb 12, 2025 · 0 comments
Open
4 of 11 tasks

Can't set default value for a radio (in actions) #3659

pjmuller opened this issue Feb 12, 2025 · 0 comments

Comments

@pjmuller
Copy link

Describe the bug

cfr https://docs.avohq.io/3.0/fields/radio.html

in an action I'm trying to use a radio field with a prefilled value

          field :subscription_state,
                as: :radio,
                name: 'Status',
                value: 'proposal', # also `default: ...` doesn't work, neither using symbols
                options: {
                  proposal: 'Voorstel',
                  confirmed: 'Bevestigd',
                  reserve: 'Reserve',
                }

however it does not get preselected, all radio inputs stay blank.

Expected behavior & Actual behavior

System configuration

Avo version: 3.17.4

Rails version: 7.2.1

Ruby version: 3.2.2

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Screenshots or screen recordings

Image

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant