json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Radio buttons across array #949

Closed jarocks closed 6 years ago

jarocks commented 6 years ago

Is it possible in an array to only allow one radio button to be selected at a time across all the items? (Like shown) Or can this only be accomplished with additional code? image

Anthropic commented 6 years ago

It isn't possible at this stage without an addon.

It depends what the specific desired outcome is, if you simply wish to select one, and only one, of the array items you can certainly use the calculate add-on to manipulate values based on a selection. But it would probably be easiest to use a dynamic drop down add-on to read in the array and display the titles of the array items with their index above or below the actual array.