# 29. Multiselect

**Multiselect** enables to selection of different options from the list to the corresponding setting:

<figure><img src="https://2194051268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPJdxe1K-sVbh8qB1ld%2Fuploads%2FKOlRX5AlaeSWLc4VP27M%2Fimage.png?alt=media&#x26;token=1e921e70-f67d-4b00-99f7-a26f94697051" alt=""><figcaption></figcaption></figure>

There  is also an availability to add **new elements** **to the list** right from the **Multiselect**:

<div><figure><img src="https://2194051268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPJdxe1K-sVbh8qB1ld%2Fuploads%2F0o3U8XdxVqsIBLMHtEmq%2Fimage.png?alt=media&#x26;token=0a6d9399-2459-4786-8077-1e4f6f9a8104" alt=""><figcaption></figcaption></figure> <figure><img src="https://2194051268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPJdxe1K-sVbh8qB1ld%2Fuploads%2F2MxjoxN7T0OKMeg1kMfB%2Fimage.png?alt=media&#x26;token=44a36b82-f18f-4eed-909e-e775af03e1c5" alt=""><figcaption></figcaption></figure></div>

```php
'tab_title_selected_labels' => array(
   'type'    => 'multiselect',
   'label'   => esc_html__( 'Add features to the list', 'stm_vehicles_listing' ),
   'options' => $this->motors_get_features_list(),
   'new_tag_settings' => array(
      'add_label'     => esc_html__( 'Add New Feature', 'stm_vehicles_listing' ),
      'taxonomy_name' => 'stm_additional_features',
      'placeholder'   => 'Enter feature name',
      'add_btn'       => 'Add',
      'cancel_btn'    => 'Cancel',
   ),
),

#new_tag_settings - to insert the 'Add New' button
```

If you have some elements in one list of options, you have to add a unique selector and specify it in config under the key `track_by`

```php
'multiselect_2' => array(
    'type' => 'multiselect',
    'label' => esc_html__( 'Multiselect', 'my-domain' ),
    'options' => array(
        array(
            'label' => 'My super title 1',
            'value' => '1'
        ),
        array(
            'label' => 'My super title 1',
            'value' => '2'
        ),
    ),
    'track_by' => 'value'
),
```
