danutc / form-builder

form builder for mozilla-services/react-jsonschema-form
Apache License 2.0
2 stars 1 forks source link

add more options for radio button / select box via UI #17

Closed hnandarusdy closed 8 years ago

hnandarusdy commented 8 years ago

From UI, we should be able to add more options for radio button and select box.

it should generate something like this in the schema

"enum": [ "foo", "bar" ], "enumNames": [ "Foo", "Bar" ]

so you need two textboxes for each option

  1. Label -> will generate to enumNames
  2. value -> will generate to enum

It should return 1 value (in most case, it will be a string)

knilink commented 8 years ago

the form engine seems only support radio for boolean a customized widget needed to developed

Update: just found out radio widget works on enum string

knilink commented 8 years ago

just rearrange the structure of the editor so there isn't too much progress regarding to the functionality,

only support for radio at the moment

hnandarusdy commented 8 years ago

I just looked you have updated you previous comment, yes we are able to have radio button as a string. here is the reference: https://github.com/mozilla-services/react-jsonschema-form/issues/169

hnandarusdy commented 8 years ago

image

We currently use enum and enumNames on Widget & Field Configuration, we have to rename it as this is too technical-perspective.

We only need to rename