eclipsesource / jsonforms

Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.

Home Page:http://jsonforms.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default value set is not working in angular

Priyadarsini-techriff opened this issue · comments

Describe the bug

I have gender field which is radio button with value Male and Female.i Want to set default value of gender is Female.
gender: {
type: 'string',
enum: ['Male', 'Female'],
default: 'Female',
}this is my schema value.But it didnot working.

Expected behavior

By default I want to set gender value is male.

Steps to reproduce the issue

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

No response

Which Version of JSON Forms are you using?

3.2.1

Framework

Angular

RendererSet

Material

Additional context

No response

Hi @Priyadarsini-techriff,

please see the documentation "How can I use default values within JSON Forms?".

Note that we also have a community forum for questions, see here.