bpmn-io / bpmn-io/form-js

Make it possible to change form data after first render

Open
#39 4 comments 0 reactions 0 assignees View on GitHub
backlog enhancement
Dominant language
JavaScript
Stars
550
Forks
157
Avg merge
3d 4h
Merged PRs (30d)
5

Description

__Is your feature request related to a problem? Please describe__

On Zeebe Tasklist if we try to complete a Task that was already completed we receive the updated Task and update the values on the form. To do that we need a way to update the values after the first render.

__Describe the solution you'd like__

```js
const form = createForm({
// ...
});

form.setData(newData);

// or

form.setProperty('data', newData)
```

__Additional context__

Currently I'm using `form.setState({ data })` for that, but I assume that it's not public API and not very wise to use it on long term

Contributor guide

Open the contributing guide

Research direction

Start at the public createForm API and inspect how the existing form.setState({ data }) path updates rendered values. Done means a supported public way to replace form data after the first render, with the updated values visible on the form.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.