# Enum displaying issue

**URL:** <https://community.forestadmin.com/t/enum-displaying-issue/3770>\
**Category:** Help me!\
**Created:** [November 25, 2021, 11:01am UTC](https://community.forestadmin.com/t/enum-displaying-issue/3770 "2021-11-25T11:01:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelien.laclergue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurelien.laclergue/32/1037_2.png) [@aurelien.laclergue](https://community.forestadmin.com/u/aurelien.laclergue)\
**Post date:** [November 25, 2021, 11:01am UTC](https://community.forestadmin.com/t/enum-displaying-issue/3770/1 "2021-11-25T11:01:33Z")

</div>

> ⚠ **This is a template you must use to report issues**. ⚠  
> You can also drag images, videos and include `Preformatted text`.

## Feature(s) impacted

Displaying enum

## Observed behavior

I can’t see all the enum values of a field.

## Expected behavior

See all the enum values of a field

## Failure Logs

No logs

## Context

> Please provide in this **mandatory section** , the relevant information about your configuration:

- Project name: Intent
- Environment name: Development / aurélienlaclergue

Hi there ! 👋

I have some issue on displaying an enum field, I don’t know why.

I have one mongoose schema like this:

```js
const schema = Mongoose.Schema({
    ...
    type: {
      type: String,
      required: true,
      enum: ['data', 'documents', 'operation', 'asset', 'equipment']
    },
    ...
  }, {
    timestamps: { createdAt: 'creationDate', updatedAt: 'lastUpdateDate' }
  });

```

but on the UI, I only see “data” and “documents” on select box:

 ![Capture d’écran 2021-11-25 à 11.57.36](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/3/3659133ca4dbe13010781a0401a8767fbeaec219.png)

On my .forestadmin-schema.json, there is:

```javascript
{
      "field": "type",
      "type": "Enum",
      "defaultValue": null,
      "enums": [
        "data",
        "documents",
        "operation",
        "asset",
        "equipment"
      ],
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }

```

Also, when I remove “data” or “documents” from the enum, these values are well removed on the UI.  
I don’t understand why ‘operation’, ‘asset’ and ‘equipment’ are not displayed on the UI ? 🤔

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [November 25, 2021, 1:08pm UTC](https://community.forestadmin.com/t/enum-displaying-issue/3770/2 "2021-11-25T13:08:34Z")

</div>

Hello @aurelien.laclergue,

Thanks for reaching out 🙌

So, if I understood well, your issue is when you’re trying to edit a record, the possible values for the `type` field are missing some options.

Could you please go to your `type` field settings (on edit mode, click on the cog icon next to the `type` title), edit the settings of the “edit widget” and show what you have?  
Should be something like this:

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/3/3d7712790727a8d620067b5463edd48b9f917ebc.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![aurelien.laclergue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurelien.laclergue/32/1037_2.png) [@aurelien.laclergue](https://community.forestadmin.com/u/aurelien.laclergue)\
**Post date:** [November 25, 2021, 1:33pm UTC](https://community.forestadmin.com/t/enum-displaying-issue/3770/3 "2021-11-25T13:33:02Z")

</div>

Thank you very much for this settings, I never see it ! 🙏

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [November 25, 2021, 2:49pm UTC](https://community.forestadmin.com/t/enum-displaying-issue/3770/4 "2021-11-25T14:49:15Z")

</div>

Cool! 🙌  
Can you see your missing options?  
Is it all good for you?

Thanks.
