Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.
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

@andydhobbs

Description

@andydhobbs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions