Django multi select field

Feature(s) impacted

Forest admin UI : Dropdown select

Observed behavior

At the moment i don’t see any way to create a multi select field

Expected behavior

I would like to be able to define some model attributes as array of choices

Failure Logs

Context

  • Project name: Kollectif DevSecOps
  • Team name: Keltio
  • Environment name: Production
  • Agent (forest package) name & version: django-forestadmin==1.4.11
  • Database type: Mysql
  • Recent changes made on your end if any: NA

Hello @Kevin_Didelot

Do you want to create a multi select in a smart action or to edit a record in a collection ?

Hello @nbouliol

Edit a record in a collection

Helllo

You can use a smart action form

Here is an example action :

{
    "name": "Manage Items",
    "type": "single",
    "fields": [
        {
        "field": "Test",
        "enums": ["1", "2", "3", "4", "5"],
        "type": ["Enum"],
        "widget": "checkboxes",
        },
    ],
},

The key part to handle the multi select is the "widget": "checkboxes" part