How to auto-populate a field in the same form?

Hello, I was wondering how to auto-populate a field in a form, if the data is dependent on the inputted value of the same form. 

To clarify, I have a select widget. Whatever was chosen from the dropdown list will be shown as the value in a text field, all in the same form.

Any ideas? Thank you!

Hello,
In order to do that, you need to :

- create a new String variable in the bottom panel

- change the binding type of the "value" property of the select widget to "expression" (small button on the right)

- set the variable  you created in the first step as value of the "value" property of your select widget (if you start typing, your variable should appear)

- then use your variable in a text widget value like this: {{myVariable}}

HTH

Hi!, what about trying to autopopulate another select widget according to the inputted value?

I have a List Array on a process variable wich im accesing trough external API.

0: {id_dependencia: 1, id_enlace_responsable: 203, enlace_responsable: "Monica Juliana Torres Aguirre"}
1: {id_dependencia: 3, id_enlace_responsable: 201, enlace_responsable: "Ignacio Campos Morales"}
2: {id_dependencia: 2, id_enlace_responsable: 202, enlace_responsable: "Adrian Perez Alvarez"}

I have to filtered according to "id_dependencia". Im thinking to use a JavaScript variable to create the 
new array list, but how can i make that the second select widget be refreshing every time the value of the first change?
Or have any sugestions?

Thank you! I tried and it works.