Skip to content

How to set the field as radio? #1279

Answered by Monteth
isaacdarcilla asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @isaacdarcilla,
You can use the checkboxes prop so that the AutoField will change the component from SelectField to RadioField.

{
  profession: {
    type: 'string',
    uniforms: {
      checkboxes: true,
      options: [...]
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Monteth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants