# Default option in select field is not working

**URL:** <https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [May 2, 2022, 5:14pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936 "2022-05-02T17:14:50Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 10, 2022, 2:35pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/33 "2022-08-10T14:35:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![dan.duett](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/dan.duett/32/3309_2.png) [@dan.duett](https://community.prismic.io/u/dan.duett)\
**Post date:** [September 23, 2022, 12:14pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/34 "2022-09-23T12:14:22Z")

</div>

@alws: We're not in a great position to be early testers, but can you let us know when this is fully deployed to production (or if it already has been)?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [September 23, 2022, 11:22pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/35 "2022-09-23T23:22:15Z")

</div>

Hey @dan.duett!

We'll update this thread when it becomes available for everyone.

---

<div class="post-metadata">

**Author:** ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://community.prismic.io/u/kris)\
**Post date:** [September 23, 2022, 11:42pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/37 "2022-09-23T23:42:50Z")

</div>

I find it very unfortunate that 5 months after a critical bug was reported, it still hasn't been fixed and published to everyone. Can we get some input from the development team on how things are prioritised internally? At the moment, I've lost motivation to report new bugs I come across or suggest features/improvements (I think I saw @dan saying something similar a while back in another thread)

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [September 23, 2022, 11:51pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/38 "2022-09-23T23:51:28Z")

</div>

Thank you for sharing your feedback @kris. It is true that there are tickets that take much longer to resolve. Lately, the development team has been focusing a lot on polishing Slice Machine so that they can resolve more granular issues afterward.

I have brought this to the team's attention, and they have added a priority tag to this ticket. We will let you know when it is resolved.

Thanks.

---

<div class="post-metadata">

**Author:** ![ali](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ali](https://community.prismic.io/u/ali)\
**Post date:** [November 1, 2022, 3:36pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/40 "2022-11-01T15:36:56Z")

</div>

@Phil We also faced this bug. Default value become useless. Is there any fix ?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 1, 2022, 7:38pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/41 "2022-11-01T19:38:05Z")

</div>

Hey @ali, could you send us a screen recording of the error and the URL of your repository?

---

<div class="post-metadata">

**Author:** ![ali](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@ali](https://community.prismic.io/u/ali)\
**Post date:** [November 3, 2022, 9:06am UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/43 "2022-11-03T09:06:17Z")

</div>

@Pau Thank for your help.  
I have just sent you a PM with all information.

---

<div class="post-metadata">

**Author:** ![curtis.burns28](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@curtis.burns28](https://community.prismic.io/u/curtis.burns28)\
**Post date:** [March 27, 2023, 4:36pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/45 "2023-03-27T16:36:10Z")

</div>

This still seems to be happening for select fields in a slice, slice machine `v0.7.1`. I `Save to File System`, but nothing is added to the `model.json`.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [March 29, 2023, 8:15pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/47 "2023-03-29T20:15:45Z")

</div>

Hey @curtis.burns28, can you send me a video of the issue?

---

<div class="post-metadata">

**Author:** ![curtis.burns28](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@curtis.burns28](https://community.prismic.io/u/curtis.burns28)\
**Post date:** [March 30, 2023, 6:30pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/48 "2023-03-30T18:30:18Z")

</div>

Of course, I'll try and get one over to you tomorrow

---

<div class="post-metadata">

**Author:** ![christianreich](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@christianreich](https://community.prismic.io/u/christianreich)\
**Post date:** [April 3, 2023, 7:31pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/49 "2023-04-03T19:31:28Z")

</div>

Same issue here. It is happening inside slices, I'm on "slice-machine-ui": "^0.7.1".

I tried adding it manually to the model.json like so:  
"default\_value": "Default",

If I do that, the checkmark in the UI is filled (use first value as default ("Default")), and also when creating a new Slice in the repository, the field is filled correctly with "Default". However the field in the API response is always filled with null.

Default values are a critical feature for a CMS, I'm hoping this will be resolved soon! 🙂

---

<div class="post-metadata">

**Author:** ![christianreich](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@christianreich](https://community.prismic.io/u/christianreich)\
**Post date:** [April 6, 2023, 6:12am UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/51 "2023-04-06T06:12:54Z")

</div>

So some further investigation:  
since the issue described above I still have is a **bug in the Prismic UI** , I can't really work around it.

It seems that the default value is only set on the select, but not the actual underlying data. This is probably because the data is only updated with an onChange function of the select, but not initially, when the default value should be set.

---

<div class="post-metadata">

**Author:** ![constructivearchitec](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@constructivearchitec](https://community.prismic.io/u/constructivearchitec)\
**Post date:** [August 7, 2023, 4:00pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/54 "2023-08-07T16:00:12Z")

</div>

Plus one that default values are not working (returning `null` if not manually toggled) and it badly breaks the system.

---

<div class="post-metadata">

**Author:** ![jerry.nummi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/jerry.nummi/32/197_2.png) [@jerry.nummi](https://community.prismic.io/u/jerry.nummi)\
**Post date:** [August 30, 2023, 5:10pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/55 "2023-08-30T17:10:57Z")

</div>

Bumping this again. Is this not going to be addressed until the new page builder is released?

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [September 1, 2023, 1:22pm UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/59 "2023-09-01T13:22:13Z")

</div>

I've asked the internal team for an update on this. I'll let you know when I hear back.

---

<div class="post-metadata">

**Author:** ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://community.prismic.io/u/kris)\
**Post date:** [October 5, 2023, 10:47am UTC](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936/60 "2023-10-05T10:47:25Z")

</div>

This ticket has been open for 1.5 years and even after 36 comments, the bug has still not been fixed 😶

[Previous page](https://community.prismic.io/t/default-option-in-select-field-is-not-working/9936.md?page=1)
