# Options list

**URL:** https://discuss.elastic.co/t/options-list/296059
**Category:** Kibana
**Created:** [February 2, 2022, 11:25am UTC](https://discuss.elastic.co/t/options-list/296059 "2022-02-02T11:25:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iraidalavrovaa](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@iraidalavrovaa](https://discuss.elastic.co/u/iraidalavrovaa)
#### Post date: [February 2, 2022, 11:25am UTC](https://discuss.elastic.co/t/options-list/296059/1 "2022-02-02T11:25:57Z")

</div>

Hi everyone,

I've recently started using Elastic. While working on my dashboard I faced a problem. I want to add an options list but the information I'm interested in is located in 3 different fields: Level 1, Level 2, Level 3. All these fields contain the values with the particular pattern I'm interested in AAA and other values. - For example, AAA oncology can be in Level 1 and AAA neuroscience can be in Level 3. I want to create an options list with two variants based on the pattern: AAA and non AAA.

Can you help me, please?  
Thank you!

---

<div class="post-metadata">

### Author: ![devon.thomson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devon.thomson/32/85468_2.png) [@devon.thomson](https://discuss.elastic.co/u/devon.thomson)
#### Post date: [February 2, 2022, 10:53pm UTC](https://discuss.elastic.co/t/options-list/296059/2 "2022-02-02T22:53:11Z")

</div>

Hi @iraidalavrovaa, this is a good question! We are currently working on a new version of the Controls system which will eventually allow you to supply `custom options` for an options List control. In this case, the two options would be associated with a set of filters, which would be applied invisibly when the option is selected.

Unfortunately, this is currently not possible with the Input Controls, but there are workarounds using other systems on the dashboard! Firstly, you'd want to create the three filters that make the dashboard show **only** AAA Levels. You can do this using the `add filter` dialog, and choosing `Edit as Query DSL`. From there, you can add a [Wildcard query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html) to include only documents that include `AAA*`.

This DSL might look something like:

```auto
{
  "query": {
    "wildcard": {
      "level_1": {
        "value": "*AAA*",
        "boost": 1,
        "rewrite": "constant_score"
      }
    }
  }
}

```

Repeat this process 3 times for each level field. You can also give the filters a custom name, to hide the scripts they're based on.

After this, you can [save the query](https://www.elastic.co/guide/en/kibana/current/save-load-delete-query.html), making sure that `Include filters` is checked. You can also give it a good name here!

Then you can click hit `exclude results` on each filter, and save the query as a new saved query with a different name. This way, users of the dashboard can easily switch between viewing `AAA` and `Non AAA`. It's not as user friendly as an options list, but it's the best we have so far.

---

<div class="post-metadata">

### Author: ![iraidalavrovaa](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@iraidalavrovaa](https://discuss.elastic.co/u/iraidalavrovaa)
#### Post date: [February 3, 2022, 3:06pm UTC](https://discuss.elastic.co/t/options-list/296059/3 "2022-02-03T15:06:24Z")

</div>

@devon.thomson thank you for your help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 3, 2022, 3:07pm UTC](https://discuss.elastic.co/t/options-list/296059/4 "2022-03-03T15:07:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
