Smart Field not showing in production, while it does show in development
Expected behavior
Smart Field showing in production, the same way it shows in development
Context
I have added a Smart Field on a collection, and it shows properly in development, but after pushing the changes to production (both the code with the schema and the layout), the field doesn’t show on production.
On both production and development, I can see that the network request when going on an item page “https://[forestadmin-backend]/forest/[collection-name]/[id]” containing the smart field and its value, but on the UI, that field is displayed on development but not on production.
The field is declared properly on the .forest-admin.json schema (on both production and development => same schema file)
There is no error on the console when accessing the page.
Project name: Collective.work
Team name: Admin
Environment name: Production
Agent type & version: forest-express-sequelize 8.4.7
The concerned Smart Field is “file” on the “document” collection.
The smart field is not visible in the layout edition mode (in production, while it is on development):
On production:
On development:
(The field is hidden on purpose in the development screenshot, as this is the table view, it is displayed on the details view - available on the list for development but not production as well -)
After some investigation, I indeed saw your SmartField in the schema, and manually refreshed your layouts.
I now see the “file” field in our internal layout representation, but it is configured as a file viewer for the Admin team, and has no custom widget for the Business team.