# \[Enum\] field type broken?

**URL:** <https://community.forestadmin.com/t/enum-field-type-broken/994>\
**Category:** Help me!\
**Created:** [September 18, 2020, 1:37pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994 "2020-09-18T13:37:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [September 18, 2020, 1:37pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/1 "2020-09-18T13:37:44Z")

</div>

(this is really blocking our business operations, the behavior is the same accross all smart actions using a field with type [Enum]).

## Expected behavior

Example with a specific action, this behavior is the same accross all smart actions using a field with type [Enum].

I have a Smart action called ‘💎 Initialize payment’.

with fields:  
“fields”: [{  
“field”: “Billing Entity”,  
“type”: [“Enum”],  
“default\_value”: null,  
“enums”: null,  
“is\_required”: true,  
“reference”: null,  
“description”: “Please keep only 1 billing entity from the list below”,  
“position”: 0,  
“widget”: null  
}, {  
“field”: “Payment Mean”,  
“type”: [“Enum”],  
“default\_value”: null,  
“enums”: null,  
“is\_required”: true,  
“reference”: null,  
“description”: “Please keep only 1 payment mean from the list below”,  
“position”: 1,  
“widget”: null  
}]

I have a route post ‘actions/initialize-payment/values’ =\> ‘payments#initialize\_payment\_values’

This method returns an array like:  
{:“Billing Entity”=\>[[“Okarito FRANCE SAS”, 1], [“Okarito Italia SA”, 384]],  
:“Payment Mean”=\>[“Okarito bank account #2”, 208]}

We expect these values to show in the UI, in the fields of the action.

## Actual behavior

Since today, these values don’t show (only an empty dropdown) - staging and production.

 ![Capture d’écran 2020-09-18 à 15.36.28](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/73b7baed8cafb22b32d7b9beec01fd73281484f0.png)

## Failure Logs

No relevant log.

## Context

We tested with versions 5.2 and 3.3. Rails liana.

---

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [September 18, 2020, 1:41pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/2 "2020-09-18T13:41:26Z")

</div>

Hello @remi_okarito 👋

I suspect a character issue here (you have a diamond emoji in your smart action name).

Can you try again without the diamond emoji please ?

Steve.

---

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [September 18, 2020, 1:43pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/3 "2020-09-18T13:43:33Z")

</div>

Hi. I have had emojis in my action names for 2 years now.  
I will try now without an emoji.

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [September 18, 2020, 2:03pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/4 "2020-09-18T14:03:19Z")

</div>

Hi @remi_okarito

If I understand well you “Billing Entity” and “Payment Mean” multiple values inputs are supposed to be pre-filled with `[[“Okarito FRANCE SAS”, 1], [“Okarito Italia SA”, 384]]` and `[“Okarito bank account #2”, 208]`. But that’s not the case anymore.

Do you have the second input displayed too? “Payment Mean” seems to be missing in the form in your screenshot.

Do you have any error in your browser console that could help?

Thanks for your responses.

---

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [September 18, 2020, 2:09pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/5 "2020-09-18T14:09:20Z")

</div>

Hello Arnaud, thanks. I’ll try to give more input:

1. I removed the emoji in the name. Didn’t fix  

2. The fields _after_ the field with type [Enum] are indeed missing. For example for this action:  
action ‘Add ancillary’, type: ‘single’, fields: [  
{  
field: ‘travellers’,  
description: ‘For which travellers do you want to assign this ancillary?’,  
type: [‘Enum’],  
is\_required: true  
},  
{  
field: ‘trips’,  
description: ‘On which trips is the ancillary valid?’,  
type: ‘Enum’,  
enums: [‘All trips’, ‘outbound’, ‘inbound’],  
is\_required: true  
},

All fields after the ‘travellers’ enum are missing.

 ![Capture d’écran 2020-09-18 à 16.08.29](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/223b239a6a011a03743f049d16aa3bb08dca81ff.png)

But if I comment out the field with ‘Enum’ type, everything is back normal.

 ![Capture d’écran 2020-09-18 à 16.06.52](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/dac53353adb8c5f6a49242c73a91c0791063d7f9.png)

I indeed have errors in console

 ![Capture d’écran 2020-09-18 à 16.09.00](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/9b36dc7034fe38e45b969a0e098ca301f09af7d6.png)

---

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [September 18, 2020, 2:25pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/6 "2020-09-18T14:25:55Z")

</div>

Hello @remi_okarito thanks for the details.

I am able to reproduce, I created a ticket, we will release a fix as soon as possible.

Sorry for the inconvenience, I will keep you intouch.

Steve.

---

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [September 18, 2020, 2:55pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/7 "2020-09-18T14:55:29Z")

</div>

Thank you Steve, this is definitely critical for our business operations (we really like this [‘Enum’] type here at Okarito). Do you think you will be able to release a fix by tonight ?

Remi

---

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [September 18, 2020, 3:34pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/8 "2020-09-18T15:34:40Z")

</div>

Hello @remi_okarito,

Yes, the release is ongoing, I will ping you back once the release has finished.

Steve.

---

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [September 18, 2020, 4:12pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/9 "2020-09-18T16:12:18Z")

</div>

Hello @remi_okarito 👋

A fix has just been released, can you confirm things are back to normal please ?

Steve.

---

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [September 18, 2020, 4:32pm UTC](https://community.forestadmin.com/t/enum-field-type-broken/994/10 "2020-09-18T16:32:16Z")

</div>

Everything back to normal! Thank you 🙏.

 ![Capture d’écran 2020-09-18 à 18.31.47](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/ae1355bd2c4c384727808c4617de4ed7d07311cf.png)
