Strapi plugin logo for Multiselect Field

Multiselect Field

A custom field for Strapi that allows users to select multiple options from a predefined list.

thumbnail for Multiselect Field

Strapi Plugin: Multiselect Field

A custom field for Strapi that allows users to select multiple options from a predefined list.

⏳ Installation

Install with NPM.

npm install strapi-plugin-multiselect-field --save

Install with Yarn.

yarn add strapi-plugin-multiselect-field

🔧 Usage

1. Configure the Plugin

Add the following configuration to your config/plugins.ts file. Create the file if it doesn’t already exist:

1export default {
2  // …
3  'multiselect-field': {
4    enabled: true,
5  },
6};

Then restart the app to apply the changes.

2. Use in the Admin Panel

After installation, the "Multiselect" field will appear in the Custom Fields section of the Content-Type Builder.

Adding Options

To define available options:

  • Enter each option on a separate line in the Available Options field.

Custom Delimiter

You can specify a custom delimiter for storing the selected values in the database.

  • For example, using the default delimiter , the API response will look like:
    Option-1,Option-2,Option-3.

Note: The selected values are stored as a plain string, so you can filter entries by any selected option when viewing data in the list view in the admin panel.

📸 Screenshots

Below are screenshots from an example application where this plugin is used to select available product sizes.

Select a custom field in the content-type builder.  Configure the Multiselect Field in the content-type builder.  Selected options in the list view.  Filter for selected options in the list view.  Select options in the edit view.

Install now

npm install strapi-plugin-multiselect-field

STATS

2 GitHub stars6 weekly downloads

Last updated

89 days ago

Strapi Version

5.18.0 and above

Author

github profile image for Felix M.
Felix M.

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.