Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Individually placed radio buttons

    I have a quite complex form containing radio buttons that cannot be drawn as a simple row or column within the same DynamicForm cell.
    Instead, each radio button must be placed into an individual DynamicForm cell. These buttons belong to a (logical) radio button group.

    Is there a way to achieve this? I looked already into the code of RadioItem, RadioGroupItem, DynamicForm and ValuesManager but still found no way how to solve this. Extending the available classes seems also not to be a solution, since sooner or later I would need to call private methods to propagate value changes up to the ValuesManager.

    Could there still exist an approach which I might have overlooked so far?

    #2
    Make whatever kind of item has the appearance you want and just use the click event to update other items that you mark as being in the same group. Use shouldSaveValue:false on all the items to avoid them saving to the form; use form.setValue() to establish a value for the group as a whole (no FormItem needs to exist to store a value in the form).

    Comment

    Working...
    X