How to get one form variable to other task form


#1

I have two task and each task having embedded html forms . I need to get 1st task form variable i.e cam-variable-name as value of 2nd task form field.

if i am giving same cam-variable-name to 2nd form also the value is show in UI but its input field value is still null.

how to do that . please help me


#2

Hi,

Just to make sure I understand the problem correctly:

  1. you use the same variable (let’s call it variableA) in 2 forms
  2. in the second form, the input of the fist form is displayed as a placeholder
  3. The value property of the field is null

Is that correct?

If you use cam-form directives, you can use the Variable manager as described here: https://docs.camunda.org/manual/latest/reference/embedded-forms/javascript/lifecycle/