# \#howtos

**URL:** https://community.forestadmin.com/tag/howtos/2.md

[Latest](https://community.forestadmin.com/latest.md) · [Categories](https://community.forestadmin.com/categories.md) · [Tags](https://community.forestadmin.com/tags.md)

---

## [Role permission copy between environments](https://community.forestadmin.com/t/role-permission-copy-between-environments/8429)

<div class="topic-metadata">

**Author:** [@Matteo](https://community.forestadmin.com/u/Matteo)\
**Replies:** 4\
**Last updated:** [May 6, 2026, 6:15pm UTC](https://community.forestadmin.com/t/role-permission-copy-between-environments/8429 "2026-05-06T18:15:15Z")

</div>

Hello. I’m wondering if it’s possible to copy role permissions between two environments. I have a role named roleX. I’ve set all the role permissiones in the prod environment. Now I’d like to copy the roleX prod enviro…

---

## [Make forest documentation supports llms.txt](https://community.forestadmin.com/t/make-forest-documentation-supports-llms-txt/8354)

<div class="topic-metadata">

**Author:** [@thibauldf](https://community.forestadmin.com/u/thibauldf)\
**Replies:** 0\
**Last updated:** [December 1, 2025, 9:53pm UTC](https://community.forestadmin.com/t/make-forest-documentation-supports-llms-txt/8354 "2025-12-01T21:53:40Z")

</div>

What is the feature? Nowadays, most people want to consume a product documentation through AI, by asking questions to it rather than browse docs searching for answers. To that end, many products started implementing the …

---

## [How to get Forest to track and display SQL Views (Postgres) in the UI?](https://community.forestadmin.com/t/how-to-get-forest-to-track-and-display-sql-views-postgres-in-the-ui/5982)

<div class="topic-metadata">

**Author:** [@GavinRay](https://community.forestadmin.com/u/GavinRay)\
**Replies:** 7\
**Last updated:** [October 20, 2025, 9:53am UTC](https://community.forestadmin.com/t/how-to-get-forest-to-track-and-display-sql-views-postgres-in-the-ui/5982 "2025-10-20T09:53:26Z")

</div>

I don’t seem to be able to find any information on tracking SQL views with Forest from Google. I’ve connected to my database and all the regular tables are there, but how can I display views or use the underlying querie…

---

## [Issues on running forest agent on local](https://community.forestadmin.com/t/issues-on-running-forest-agent-on-local/8273)

<div class="topic-metadata">

**Author:** [@aayush-sinha](https://community.forestadmin.com/u/aayush-sinha)\
**Replies:** 1\
**Last updated:** [August 4, 2025, 9:31pm UTC](https://community.forestadmin.com/t/issues-on-running-forest-agent-on-local/8273 "2025-08-04T21:31:29Z")

</div>

Bootstrapped forest admin code for the project. Configured it to run on local. Record selecting is not working correctly on development environment. If I select any 1 record under any collection, it would select all on t…

---

## [I added a customHosting=true, still asking for creating a project](https://community.forestadmin.com/t/i-added-a-customhosting-true-still-asking-for-creating-a-project/8116)

<div class="topic-metadata">

**Author:** [@alfaizm](https://community.forestadmin.com/u/alfaizm)\
**Replies:** 15\
**Last updated:** [July 3, 2025, 9:10am UTC](https://community.forestadmin.com/t/i-added-a-customhosting-true-still-asking-for-creating-a-project/8116 "2025-07-03T09:10:41Z")

</div>

I added a customHosting=true, still asking for creating a project https://app.forestadmin.com/projects/create/setup/1?customHosting=true Also, the back button is disabled. I want to setup my existing project in my deve…

---

## [How to expose an API-backed “virtual” collection in Forest Admin Agent?](https://community.forestadmin.com/t/how-to-expose-an-api-backed-virtual-collection-in-forest-admin-agent/8197)

<div class="topic-metadata">

**Author:** [@Ilyas\_li](https://community.forestadmin.com/u/Ilyas_li)\
**Replies:** 2\
**Last updated:** [June 25, 2025, 8:12pm UTC](https://community.forestadmin.com/t/how-to-expose-an-api-backed-virtual-collection-in-forest-admin-agent/8197 "2025-06-25T20:12:15Z")

</div>

Hello Forest Admin team, I’m migrating my setup to the new Agent/Datasource architecture and need to add a collection that doesn’t live in Mongo (or any DB), but is fetched dynamically from a third-party API. In my old …

---

## [How to auto fill timestamp values while creating a document in collection?](https://community.forestadmin.com/t/how-to-auto-fill-timestamp-values-while-creating-a-document-in-collection/8183)

<div class="topic-metadata">

**Author:** [@aayush-sinha](https://community.forestadmin.com/u/aayush-sinha)\
**Replies:** 2\
**Last updated:** [June 18, 2025, 1:22pm UTC](https://community.forestadmin.com/t/how-to-auto-fill-timestamp-values-while-creating-a-document-in-collection/8183 "2025-06-18T13:22:57Z")

</div>

I am trying to create a new document under a collection, createdAt and updatedAt fields are mandatory because timestamp is set as true in model. Can forest handle these fields while I create new document. Screenshot of…

---

## [Smart action error type](https://community.forestadmin.com/t/smart-action-error-type/8168)

<div class="topic-metadata">

**Author:** [@Adel\_de\_Clevermate](https://community.forestadmin.com/u/Adel_de_Clevermate)\
**Replies:** 1\
**Last updated:** [June 13, 2025, 11:16am UTC](https://community.forestadmin.com/t/smart-action-error-type/8168 "2025-06-13T11:16:27Z")

</div>

Feature(s) impacted handle a smart action Observed behavior when I click on action “Ajouter une transaction” i got this log error : warning: \[400\] POST /forest/\_actions/contacts/2/ajouter-une-transaction/hooks/load - 1…

---

## [Multiple select for a Collection smart field](https://community.forestadmin.com/t/multiple-select-for-a-collection-smart-field/8143)

<div class="topic-metadata">

**Author:** [@Dan\_Koren](https://community.forestadmin.com/u/Dan_Koren)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 11:17am UTC](https://community.forestadmin.com/t/multiple-select-for-a-collection-smart-field/8143 "2025-06-03T11:17:56Z")

</div>

I have a collection that has tens of thousands records. I want to create a smart action that one if its fields is selecting multiple entities of the collection. Since there’s lots of records in that collection, i need …

---

## [How to configure many-to-many relationships with MongoDB arrays in Forest Admin Cloud Agent?](https://community.forestadmin.com/t/how-to-configure-many-to-many-relationships-with-mongodb-arrays-in-forest-admin-cloud-agent/8068)

<div class="topic-metadata">

**Author:** [@Pankaj\_P](https://community.forestadmin.com/u/Pankaj_P)\
**Replies:** 14\
**Last updated:** [May 9, 2025, 1:55pm UTC](https://community.forestadmin.com/t/how-to-configure-many-to-many-relationships-with-mongodb-arrays-in-forest-admin-cloud-agent/8068 "2025-05-09T13:55:46Z")

</div>

Feature(s) impacted Many-to-Many relation using MongoDB Observed behavior collection.addManyToManyRelation() method requires a throughCollection parameter. Expected behavior In MongoDB, I should be able to create many-…

---

## [Create a Smart Action tests with Jest](https://community.forestadmin.com/t/create-a-smart-action-tests-with-jest/7967)

<div class="topic-metadata">

**Author:** [@Avishai\_Lippner](https://community.forestadmin.com/u/Avishai_Lippner)\
**Replies:** 2\
**Last updated:** [March 30, 2025, 9:46am UTC](https://community.forestadmin.com/t/create-a-smart-action-tests-with-jest/7967 "2025-03-30T09:46:08Z")

</div>

Feature(s) impacted Hi there, I’m trying to setup our first test in our Forest Admin project utilizing Jest library, following this instructions. We want this test to run on an isolated environment on both local devel…

---

## [Unable to write UTC for Forest Liana collections or Forest controllers in rails using RSpec and SimpleCov for Coverage report](https://community.forestadmin.com/t/unable-to-write-utc-for-forest-liana-collections-or-forest-controllers-in-rails-using-rspec-and-simplecov-for-coverage-report/7998)

<div class="topic-metadata">

**Author:** [@ZUKON3002](https://community.forestadmin.com/u/ZUKON3002)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 10:05am UTC](https://community.forestadmin.com/t/unable-to-write-utc-for-forest-liana-collections-or-forest-controllers-in-rails-using-rspec-and-simplecov-for-coverage-report/7998 "2025-03-25T10:05:34Z")

</div>

Feature(s) impacted Unable to write UTC for Forest Liana collections or Forest controllers in rails using RSpec and SimpleCov for Coverage report Observed behavior It is expecting a server to be running for test environ…

---

## [Manage more than one schema in a project](https://community.forestadmin.com/t/manage-more-than-one-schema-in-a-project/7960)

<div class="topic-metadata">

**Author:** [@David\_Martin](https://community.forestadmin.com/u/David_Martin)\
**Replies:** 9\
**Last updated:** [March 11, 2025, 1:36pm UTC](https://community.forestadmin.com/t/manage-more-than-one-schema-in-a-project/7960 "2025-03-11T13:36:53Z")

</div>

Feature(s) impacted I can’t how to view/edit/manage more than one schema in a project Observed behavior I cannot select more than one schema when setting up a project. Last we spoke I remember being told this was possi…

---

## [How to prevent record duplicate by the Smart Action](https://community.forestadmin.com/t/how-to-prevent-record-duplicate-by-the-smart-action/7883)

<div class="topic-metadata">

**Author:** [@Avishai\_Lippner](https://community.forestadmin.com/u/Avishai_Lippner)\
**Replies:** 2\
**Last updated:** [February 19, 2025, 8:55am UTC](https://community.forestadmin.com/t/how-to-prevent-record-duplicate-by-the-smart-action/7883 "2025-02-19T08:55:57Z")

</div>

is there a way to prevent row duplication? I want to prevent duplication of a record for it has 1to1 relationship with another model, which gets transferred to the new record unintentionally, and I want to prevent users…

---

## [Is it possible to limit search fields for a collection using forest-express-sequelize?](https://community.forestadmin.com/t/is-it-possible-to-limit-search-fields-for-a-collection-using-forest-express-sequelize/7855)

<div class="topic-metadata">

**Author:** [@Brett\_Belka](https://community.forestadmin.com/u/Brett_Belka)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 3:34pm UTC](https://community.forestadmin.com/t/is-it-possible-to-limit-search-fields-for-a-collection-using-forest-express-sequelize/7855 "2025-02-13T15:34:43Z")

</div>

Feature(s) impacted Search bar Observed behavior When a term is typed into the search bar, it searches every field in every record. Expected behavior Limit the search to commonly searched fields, omitting extraneous fi…

---

## [Using the SQL Having clause](https://community.forestadmin.com/t/using-the-sql-having-clause/7724)

<div class="topic-metadata">

**Author:** [@Quentin\_Somerville1](https://community.forestadmin.com/u/Quentin_Somerville1)\
**Replies:** 1\
**Last updated:** [February 12, 2025, 9:33pm UTC](https://community.forestadmin.com/t/using-the-sql-having-clause/7724 "2025-02-12T21:33:08Z")

</div>

What is the feature? I would like to use the sql HAVING clause. Maybe I’m wrong but I think it’s not supported yet because when I’m looking at the aggregate I don’t see the way to do it What problem does this solve for …

---

## [Collection Data access forbidden](https://community.forestadmin.com/t/collection-data-access-forbidden/7803)

<div class="topic-metadata">

**Author:** [@Adel\_de\_Clevermate](https://community.forestadmin.com/u/Adel_de_Clevermate)\
**Replies:** 1\
**Last updated:** [February 4, 2025, 10:50am UTC](https://community.forestadmin.com/t/collection-data-access-forbidden/7803 "2025-02-04T10:50:02Z")

</div>

I created a new project and then invited two other users: one as admin and another as operations user. Feature(s) impacted Read collection content Observed behavior After users access to the project they are not able t…

---

## [Forest new agent, ordering collection](https://community.forestadmin.com/t/forest-new-agent-ordering-collection/7774)

<div class="topic-metadata">

**Author:** [@Adel\_de\_Clevermate](https://community.forestadmin.com/u/Adel_de_Clevermate)\
**Replies:** 3\
**Last updated:** [January 24, 2025, 2:51pm UTC](https://community.forestadmin.com/t/forest-new-agent-ordering-collection/7774 "2025-01-24T14:51:23Z")

</div>

Feature(s) impacted listing records of collection Observed behavior the items are ordered by default by id (key) ascending Expected behavior the collection is a view in database and it has a specific order defined …

---

## [Collection doesn't load](https://community.forestadmin.com/t/collection-doesnt-load/7778)

<div class="topic-metadata">

**Author:** [@Santa\_Klaus](https://community.forestadmin.com/u/Santa_Klaus)\
**Replies:** 9\
**Last updated:** [January 24, 2025, 8:47am UTC](https://community.forestadmin.com/t/collection-doesnt-load/7778 "2025-01-24T08:47:53Z")

</div>

Hi, I’m implementing the new TS forest library with Nest.js. Somehow, I had no issue today except for this afternoon. The collections looks loaded but once I’m trying to access to those on the admin, it doesn’t load. …

---

## [Authentication loading indefinitely and no error message appears](https://community.forestadmin.com/t/authentication-loading-indefinitely-and-no-error-message-appears/7771)

<div class="topic-metadata">

**Author:** [@ilyas](https://community.forestadmin.com/u/ilyas)\
**Replies:** 10\
**Last updated:** [January 23, 2025, 2:41pm UTC](https://community.forestadmin.com/t/authentication-loading-indefinitely-and-no-error-message-appears/7771 "2025-01-23T14:41:13Z")

</div>

Feature(s) impacted The Forest Admin agent authentication process and its integration with MongoDB using @forestadmin/datasource-mongoose. Observed behavior The Forest Admin panel displays the message: “Unlocking your …

---

## [New agent forest - define models enum values](https://community.forestadmin.com/t/new-agent-forest-define-models-enum-values/7761)

<div class="topic-metadata">

**Author:** [@Adel\_de\_Clevermate](https://community.forestadmin.com/u/Adel_de_Clevermate)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 8:18am UTC](https://community.forestadmin.com/t/new-agent-forest-define-models-enum-values/7761 "2025-01-20T08:18:19Z")

</div>

Feature(s) impacted in order to change a gender for EXAMPLE i want to show a dropdown list instead of text input. I would like to do this on code not on the UI. Context migration from forest v9 to the new nodejs agen…

---

## [New nodejs agent | override listing collection](https://community.forestadmin.com/t/new-nodejs-agent-override-listing-collection/7760)

<div class="topic-metadata">

**Author:** [@Adel\_de\_Clevermate](https://community.forestadmin.com/u/Adel_de_Clevermate)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 12:56pm UTC](https://community.forestadmin.com/t/new-nodejs-agent-override-listing-collection/7760 "2025-01-17T12:56:27Z")

</div>

Hi, I am migrating to the new nodejs agent from old agent v9. The target is to customise a collection “matchs” so that it fusion its content with “matchs\_archived”, so the GET /matchs should return the current matchs a…

---

## [Is it possible to customize Rich Text Editor to put H2 and H3 as options, using Node.js?](https://community.forestadmin.com/t/is-it-possible-to-customize-rich-text-editor-to-put-h2-and-h3-as-options-using-node-js/7752)

<div class="topic-metadata">

**Author:** [@caioandersonf](https://community.forestadmin.com/u/caioandersonf)\
**Replies:** 5\
**Last updated:** [January 16, 2025, 10:12am UTC](https://community.forestadmin.com/t/is-it-possible-to-customize-rich-text-editor-to-put-h2-and-h3-as-options-using-node-js/7752 "2025-01-16T10:12:30Z")

</div>

I have a form for creating news materials in my workspace. How do I modify the Rich Text Editor so that I can use H2, H3 and normal tags?

---

## [Could Someone Give me Advice with Setting Up Custom Smart Actions in Forest Admin?](https://community.forestadmin.com/t/could-someone-give-me-advice-with-setting-up-custom-smart-actions-in-forest-admin/7731)

<div class="topic-metadata">

**Author:** [@roberrttt](https://community.forestadmin.com/u/roberrttt)\
**Replies:** 1\
**Last updated:** [December 24, 2024, 10:39am UTC](https://community.forestadmin.com/t/could-someone-give-me-advice-with-setting-up-custom-smart-actions-in-forest-admin/7731 "2024-12-24T10:39:49Z")

</div>

Hello there, :wave: I am new to Forest Admin and have been exploring its customization features; particularly smart actions. I have gone through the documentation and managed to create a basic smart action; but I am run…

---

## [How to configure ForestAdmin with a nextjs backend server](https://community.forestadmin.com/t/how-to-configure-forestadmin-with-a-nextjs-backend-server/7719)

<div class="topic-metadata">

**Author:** [@Jeremy\_Fuhrmann](https://community.forestadmin.com/u/Jeremy_Fuhrmann)\
**Replies:** 4\
**Last updated:** [December 19, 2024, 2:38pm UTC](https://community.forestadmin.com/t/how-to-configure-forestadmin-with-a-nextjs-backend-server/7719 "2024-12-19T14:38:18Z")

</div>

Hi Forest community! I have a backend server using the Nextjs framework. To be more precise I use their API routes feature, which means each of my api routes is served as a serverless function by Vercel. So I don’t have…

---

## [Request for API Access in Hosted Agent Setup](https://community.forestadmin.com/t/request-for-api-access-in-hosted-agent-setup/7703)

<div class="topic-metadata">

**Author:** [@Aron](https://community.forestadmin.com/u/Aron)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 10:29am UTC](https://community.forestadmin.com/t/request-for-api-access-in-hosted-agent-setup/7703 "2024-12-16T10:29:10Z")

</div>

Feature(s) impacted Public API access for triggering webhooks or fetching new user data programmatically. Observed behavior Currently, I cannot access or see any options for using the Forest Admin API in my environment.…

---

## [The new environment doesn't work](https://community.forestadmin.com/t/the-new-environment-doesnt-work/7650)

<div class="topic-metadata">

**Author:** [@jacques\_liao](https://community.forestadmin.com/u/jacques_liao)\
**Replies:** 10\
**Last updated:** [December 6, 2024, 8:43am UTC](https://community.forestadmin.com/t/the-new-environment-doesnt-work/7650 "2024-12-06T08:43:55Z")

</div>

Hello :wave: I’m having a little trouble configuring the environment. I’ve created a new environment called Preprod on our project. I’ve been careful to set the right secrets for FOREST\_AUTH\_SECRET FOREST\_ENV\_SECRET …

---

## [Rails with two databases (PSQL and Mongo)](https://community.forestadmin.com/t/rails-with-two-databases-psql-and-mongo/7679)

<div class="topic-metadata">

**Author:** [@KidA001](https://community.forestadmin.com/u/KidA001)\
**Replies:** 5\
**Last updated:** [December 4, 2024, 10:59am UTC](https://community.forestadmin.com/t/rails-with-two-databases-psql-and-mongo/7679 "2024-12-04T10:59:10Z")

</div>

Hi All - We have a Rails (7.1) project. We utilize both PSQL and MongoDB. Mongoid is our ORM for MongoDB. I just setup a demo project and it’s only picking up our PSQL DB (ActiveRecord). Is it possible to include both ou…

---

## [Smart Actions Not Appearing in Any Collections - Shows "No Smart Action" Message](https://community.forestadmin.com/t/smart-actions-not-appearing-in-any-collections-shows-no-smart-action-message/7649)

<div class="topic-metadata">

**Author:** [@John\_Zealand-Doyle](https://community.forestadmin.com/u/John_Zealand-Doyle)\
**Replies:** 7\
**Last updated:** [November 25, 2024, 9:14am UTC](https://community.forestadmin.com/t/smart-actions-not-appearing-in-any-collections-shows-no-smart-action-message/7649 "2024-11-25T09:14:06Z")

</div>

Feature(s) impacted Smart Actions are not appearing in any Forest Admin collections (QRCode, ServiceProvider, Hotel) despite being properly defined in both routes and actions files. The Smart Actions tab shows “No Smart …

---

## [Computed Many to Many Relations](https://community.forestadmin.com/t/computed-many-to-many-relations/7639)

<div class="topic-metadata">

**Author:** [@arthur](https://community.forestadmin.com/u/arthur)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 3:38pm UTC](https://community.forestadmin.com/t/computed-many-to-many-relations/7639 "2024-11-20T15:38:52Z")

</div>

Feature(s) impacted We are currently migrating our service to use the new agent. As part of this process, I am trying to determine how to handle computed many-to-many relationships effectively. For instance, we have a r…

[Next page](https://community.forestadmin.com/tag/howtos/2.md?match_all_tags=true&page=1&tags%5B%5D=howtos)
