Prefilled Form

Hi all. In my user task the form has a contract and in the operations the contract values are assigned to process variables.
I would like to enable users to edit their form in a next step, so the next time i need the form to be filled with the previously submitted values.
I can see that you can create new variables in the Design UI, using the rest api, eg. to create External API variable using the url ../API/bpm/caseVariable/{{task.caseId}}/my-process-variable-name. The returned json contains the type and value in string variables.
How do i use them to each input widget?
Thank you in advance.
My Bonita version is: 7.5.4

Hello, use the JSON dot notation to navigate the JSON object. Let’s say the variable in the UI Designer you created above is named myVariable. myVariable would contain the JSON once the REST API was called. To access the data in the object you would use JSON dot notation. Let’s say the object has firstName and lastName as fields in the JSON object. To populate those values into fields on your form go to the Value section in each widget and enter myVariable.firstName and myVariable.lastName.