# Smart fields not displayed in production but shows up on development server

**URL:** <https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931>\
**Category:** Help me!\
**Created:** [July 4, 2022, 10:36am UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931 "2022-07-04T10:36:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [July 4, 2022, 10:36am UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/1 "2022-07-04T10:36:06Z")

</div>

Hey guys,

I am facing a small issue. I have checked other articles but I didn’t find a solution. My issue is

- My smart fields are appearing in local development but not in production.
- This is only happening with one collection.

 ![Screen Shot 2022-07-03 at 4.52.52 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/b/bcca119ce65ef66d9ba4b70f1e9ad32017da03e3.png)  
 ![Screen Shot 2022-07-03 at 4.52.30 PM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/659c5b2689987511aa9d83c03f1c674f98a55833.jpeg)

I have tried deleting my forestadmin-schema.json file but it does not help.

Kindly help me in this regards.

Best,  
Tanish

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [July 4, 2022, 11:14am UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/2 "2022-07-04T11:14:33Z")

</div>

Hello @tanish,

> [@tanish](#):
>
> I am facing a small issue. I have checked other articles but I didn’t find a solution. My issue is
> 
> - My smart fields are appearing in local development but not in production.
> - This is only happening with one collection

Did you push your development new code to production? What are those smart fields ? (_Refund type, Payment Description, Organization, Organization Name_ am I right ?)

> [@tanish](#):
>
> I have tried deleting my forestadmin-schema.json file but it does not help.

Your `forestadmin-schema.json` file is computed in the development environment only. Then once happy with your development environment changes you can push them to production including the `forestadmin-schema.json`.

In your case, you probably have forgotten to push the code that handle those smart fields but you have pushed the right `forestadmin-schema.json` (already containing the metadata for those fields) so the fields name appears in the UI but not their values, am I correct?

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [July 4, 2022, 1:15pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/3 "2022-07-04T13:15:02Z")

</div>

I have pushed my forestadmin-schema.json file to production multiple times, and I also checked and the missing files do exist in the file as well.

Yes, the issue is that the fields name appears in the UI but not their values.

Best,  
Tanish

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [July 4, 2022, 3:33pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/4 "2022-07-04T15:33:42Z")

</div>

Hey again,

> [@tanish](#):
>
> Yes, the issue is that the fields name appears in the UI but not their values.

- Does the code related to **making smart fields** have been pushed to production too ?
- Can you spot any differences between production and development? (The issue should come from that)
- Can you share a screenshot of the network call response when you look at your collection refunds in production?

To make things clear, if the data doesn’t show up in the UI it means that your backend doesn’t send them. So we need to find out why that’s the case.

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [July 5, 2022, 11:46am UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/5 "2022-07-05T11:46:44Z")

</div>

> [@morganperre](#):
>
> - Does the code related to **making smart fields** have been pushed to production too ?

Yes

> [@morganperre](#):
>
> - Can you share a screenshot of the network call response when you look at your collection refunds in production?

[https://drive.google.com/file/d/1lAd6ye4\_JsjgLkVFFeacLsm9cv3f012J/view?usp=sharing](https://drive.google.com/file/d/1lAd6ye4_JsjgLkVFFeacLsm9cv3f012J/view?usp=sharing)

Its weird because if I open a record, the data is retrievable but it is not retrievable in a collection view.

Let me know if you have any other questions.

Best,  
Tanish

---

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [July 5, 2022, 12:19pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/6 "2022-07-05T12:19:43Z")

</div>

Hello @tanish,

> [@tanish](#):
>
> It’s weird because if I open a record, the data is retrievable but it is not retrievable in a collection view.

In your video, with can see empty data attributes for the relationships _Organization_ and _PaymentId_.

It means that the list route is not working as expected. Did you override the default route? (It should be a get route something like `router.get('/refundsVTwo', ...`)

In order to help us understand, can you also share one of your **Smart Field implementations** , please? (For example `Organization`)

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![tanish](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@tanish](https://community.forestadmin.com/u/tanish)\
**Post date:** [July 5, 2022, 12:50pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/7 "2022-07-05T12:50:12Z")

</div>

I just realized that Smart fields are only not working for fields that rely on a relationship. That means that the lookup on the relationship is not executing in production in the smart field.

This is my schema for the refunds

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/0f625b19d2367eda76ec59bef9735f8f1ebfd815.jpeg)

All these smart fields use paymentId relationship lookup for retrieving values.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f400a8f08c6eea2d65565a112e255622c4f46c1e.jpeg)

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [July 5, 2022, 1:50pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/8 "2022-07-05T13:50:55Z")

</div>

Hi @tanish 👋 Do you request the paymentId field on the refundv2 view?

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [July 6, 2022, 12:33pm UTC](https://community.forestadmin.com/t/smart-fields-not-displayed-in-production-but-shows-up-on-development-server/4931/10 "2022-07-06T12:33:28Z")

</div>

Hi @tanish,

We released a fix on `forest-express-mongoose` this morning `8.7.4`.  
Could you try to use it to see if it fixes your issue ?
