# New fields returned as null

**URL:** <https://community.prismic.io/t/new-fields-returned-as-null/8339>\
**Category:** Developing with Prismic\
**Tags:** rest-api\
**Created:** [December 13, 2021, 10:36am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339 "2021-12-13T10:36:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 10:36am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/1 "2021-12-13T10:36:11Z")

</div>

@Phil @skedify I still have this issue. And toggling the field and republishing does not help for me. I have tried the suggestion of resaving the default of the boolean field in my custom slice, it didn't change anything. And I have tried upgrading to slice-machine-ui@0.1.2-beta.3 - same behaviour. I'm not sure if the fixes aren't working because my toggle property is on a slice rather than a custom type? Any suggestions?

---

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 10:52am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/2 "2021-12-13T10:52:27Z")

</div>

In fact, any new field of any type I add to a slice in an existing published document - always shows up "null". Pls help!

---

<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:** [December 13, 2021, 10:55am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/3 "2021-12-13T10:55:22Z")

</div>

Hi Adam,

I made a new topic as this was unrelated to the other, and updated the other thread to include the instructions:  
`npm install slice-machine-ui@latest`

The current beta is not the same.

---

<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:** [December 13, 2021, 10:55am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/4 "2021-12-13T10:55:59Z")

</div>

Can you share with me some screenshots of exactly where you are seeing the null response?

---

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 10:56am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/5 "2021-12-13T10:56:24Z")

</div>

Thanks @Phil. I was running with @latest initially - I tried beta - I get the same behaviour on both @latest and @beta.

---

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 10:57am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/7 "2021-12-13T10:57:18Z")

</div>

rightBgImageVisibility is set to true on the slice

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/7/753d41697e1dbc423a7488cf473a8c1fee4e1082.png)

---

<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:** [December 13, 2021, 10:59am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/8 "2021-12-13T10:59:25Z")

</div>

Once you add any type of new field to a Custom Type or a Slice, you must first republish any documents that use this Slice for the field to be returned with a value in the API.

---

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 11:19am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/9 "2021-12-13T11:19:17Z")

</div>

I tried that, it doesn't work for me

---

<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:** [December 13, 2021, 11:37am UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/10 "2021-12-13T11:37:10Z")

</div>

Can you tell me the URL for your repo so I can check this?

---

<div class="post-metadata">

**Author:** ![adam4](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/adam4/32/3542_2.png) [@adam4](https://community.prismic.io/u/adam4)\
**Post date:** [December 13, 2021, 12:10pm UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/11 "2021-12-13T12:10:01Z")

</div>

Thanks - it was a PEBCAK (problem exists between chair and keyboard) I was publishing a document for a different locale than I was testing with. Do'h! It's actually working once I publish.

---

<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:** [December 13, 2021, 1:16pm UTC](https://community.prismic.io/t/new-fields-returned-as-null/8339/12 "2021-12-13T13:16:17Z")

</div>

I'm glad you figured this out. It's a common misunderstanding.

Let us know if you need anything else 🙂

_(I edited your comment for future readers.)_
