Is it possible to open a SmartAction Form from an HTML Field (and include data)?

I am planning to build a timeline of individual “task” instances using an HTML field, where a task always belongs to another task. The relationship between two tasks defines the timeline sequence. To easily edit tasks from the timeline view, it would be perfect to open a smart action form in a sidepanel with information, which task was clicked.

Is it possible to add a click listener to elements in an HTML field that open a smart action form and append data to trigger (which field was clicked, or which “previous task” should be set as belongsTo for example)?

If not, what would be the best way to represent a timeline in forestadmin with proper user experience to add, remove and edit individual elements in the timeline?

Thank you very much for your input
Markus

Hello @marksrr ,

Smart action forms are not designed to implement such a complex logic. Most of forest admin customizations revolve around collections. If you need some custom business flow to be represented in forestadmin, the best way is to have data in your database that represents that flow, and manipulate this data in forest admin.
For your usecase, I would recommend having a “tasks” collection, and some smart segments and maybe some smart actions.

Before doing that, we have recently released a built-in feature that may suit your usecase. It needs a manual activation, can I ask someone to contact you to talk about it ? Could you tell me the name of your project to do so ?