Is that possible to create an advanced form, with conditional steps?

Hi Forest team,

Is there a way to create custom forms, with conditional steps ?

For example filling some data on the “users” collection, with specific business logic to fill the data, and with pre-filled fields ?

Something hard coded on the server side, but with capacities of a jotform ? (with conditionnal trees)

Thanks a lot for your help !

Hello @Aarbel,

Your options will depend on the agent stack or Forest hosting type that you are using (Self-hosted or Cloud).

Could you please share some details following the template below :pray:

  • Project name: …
  • Team name: …
  • Environment name: …
  • Agent technology: (nodejs, php, rails, python)
  • Agent (forest package) name & version: …
  • Database type: …
  • Recent changes made on your end if any: …

We use Forest Admin Cloud

Project name: Clovis V2 (Prod / Staging / Dev)
Database type: postgre

Hello,

You’re in luck, as we have recently released some tools to build more complex form in actions.

You will find the root of the documentation for actions here:

In particular, you have a lot of control over what is displayed to the user from the code when using dynamic forms:

You can use this to your advantage along with layout elements (like pages, rows, html blocks), in order to customize your form to perform advanced logic:

You can find examples in the documentation, and more in-depth ones in the open source agent nodejs repo:

I hope this is enough to get you started.
(I’m assuming you already know how to bootstrap a development project to create some code customizations for your Forest Admin Cloud)
Please let me know if this covers all your use cases :pray:

1 Like