0

How may I use a multiselect field in the Impresspages Plugin options. Something like this:

{
        "label": "Social Nets",
        "name": "socialNets",
        "type": "select",
        "multiple": "multiple",
        "default": "",
        "values": ["", "facebook", "twitter", "pintrest"]
}

Of course, the field above "multiple" doesn't work in this code snip. So, how to implement it in the plugin options json file?

2 Answers2

1

You can use "Checkboxes" field type

"options": [
    {
        "label": "XXX",
        "name": "xxx",
        "type": "Checkboxes",
        "values": ["option1", "option2", "options3", "option4"]
    }
 ]
Mangirdas Skripka
  • 1,647
  • 1
  • 15
  • 14
0

There is no such option implemented in the core of the system. Meaning, there's no such field type as 'multiselect'. You can check how other fields are implemented and extend the core, create pull-request and we'll add it in next release.