Combo Box In Editor

Combo Box In Editor

daduffydaduffy Posts: 31Questions: 5Answers: 1

I have a situation where I would like to provide a combox style field type in editor.

I would like to offer the user an option to pick 'Other' after the list of most common options but then change into a text box for free form entry into the field.

I envision something like this:

        {
                    type:  "combo",
                    label: "Field Label",
                    name: "fieldname",
                    options: [
                        { label: "Label One", value: "value01" },
                        { label: "Label Two", value: "value02" },
                        { label: "Label Three", value: "value03" }
                        { label: "Other", value: "" }
                    ]
        }

but anything that works would be fine.

I have tried searching around without being able to find it. Is something like this available already?

Any help would be greatly appreciated.

Thanks,
Dave

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    There are integrations for the Select2 and Selectize libraries available for Editor which would help with this. A full list of the available field type plug-ins for Editor is available here.

    Regards,
    Allan

  • daduffydaduffy Posts: 31Questions: 5Answers: 1

    Allan,

    Thank you for the quick response and direction. I will reply back to this with what I come up with.

    Dave

    PS
    I love your product.

This discussion has been closed.