Display variables in localStorage after pressing SAVE in a task form

Hi folks,.

Let’s say I have two variables, one is an array and another is another array.
Then, I press save not complete.

My question here is the following one :

Will I have to write anything in order to display those on localStorage after save ?
Because I can’t see anything there.
It saves the variables sometimes.
What variables are saved on localStorage?

Thanks in advance,
Steve

Hi @rob2universe and @steftriant,

the save button of a task form saves the variables in the local store of the browser.

To save them in the database, you have to provide a script as shown here: https://github.com/camunda-consulting/code/blob/master/snippets/task-form-save-to-engine/src/main/webapp/forms/task-form.html#L20-L65

Hope this helps, Ingo

Hi @Ingo_Richtsmeier and @rob2universe and thanks for your feedback here.

I’ve recently provided the suggested script as you can see here

but it doesn’t save something in the task form.

Best,
Steve