Scenario: I have two Camunda 8 forms: a user form and an approver form. User details submitted in the first form should be automatically populated in read-only format in the second form, along with an additional “Action” field (Approved/Rejected) for the approver.
You can just duplicate the input form. Then, in the duplicate you can set all the fields to read only. That will then make sure that the variables created in the first form match the ones in the second form.
Then you just need to change the ID of the form and add the approve check box.
How can I access the first form, variable by which key name? I have tried with ${keyName} in 2nd form to access the variable, but it is printing in form as it is not coming the value.
please share the data mapping between the forms with us!
If you don’t have any data mapping, the variables submitted in the first form will automatically appear in the second. The data is mapped via the “key” property. You do not need to define the default values.
Where did you execute the process?
Pro-tip: You do not need to duplicate the form: add a variable “isReview = true” to the second task and use the same form. Then feed in the value into the read-only property by clicking the “fx” button.