Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

Editing the options of a "multiple choices" not working #202

Open
andydhobbs opened this issue May 12, 2017 · 0 comments
Open

Editing the options of a "multiple choices" not working #202

andydhobbs opened this issue May 12, 2017 · 0 comments

Comments

@andydhobbs
Copy link

Hi,

I've been experimenting and found a problem with the multiple-checkbox/multiple choices field

Looking at my own running builder and the example at https://github.com/Kinto/formbuilder. If you try to edit the choices available the changes do not save/update. If you change the text of a choice it is not saved and it you add a choice it is not saved.

Looking at config.js I think it is how the field type is defined that is causing the problem:

{ id: "multiple-checkbox", icon: "check", label: "Multiple choices", jsonSchema: { type: "array", title: "A multiple choices list", items: { type: "string", enum: ["choice 1", "choice 2", "choice 3"], }, uniqueItems: true, }, uiSchema: { "ui:widget": "checkboxes", editSchema: { type: "object", properties: { title: {type: "string", title: "Label"}, required: {type: "boolean"}, enum: { type: "array", title: "Choices", items: { type: "string" }, default: ["choice 1", "choice 2", "choice 3"], } } }, }, formData: {} },
I am trying to fix this and will post an update when I have.

andydhobbs added a commit to andydhobbs/formbuilder that referenced this issue May 13, 2017
almet added a commit that referenced this issue Nov 3, 2017
#202 fixed issue editing multi checkbox field
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant