# View variable in text field in form type camunda form

**URL:** <https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754>\
**Category:** Discussion & Questions\
**Tags:** camunda-8-slack\
**Created:** [September 7, 2022, 4:46am UTC](https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754 "2022-09-07T04:46:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mina\_Adel](https://forum.camunda.io/user_avatar/forum.camunda.io/mina_adel/32/22298_2.png) [@Mina\_Adel](https://forum.camunda.io/u/Mina_Adel)\
**Post date:** [September 7, 2022, 4:46am UTC](https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754/1 "2022-09-07T04:46:30Z")

</div>

Hi …  
I am using camunda 8 in the cloud and I have variable filled in the start node and I want to view this variable in text field in a form with type camunda form or in other words how to inject this variable in the json object ?

---

<div class="post-metadata">

**Author:** ![StephanHaarmann](https://forum.camunda.io/user_avatar/forum.camunda.io/stephanhaarmann/32/21924_2.png) [@StephanHaarmann](https://forum.camunda.io/u/StephanHaarmann)\
**Post date:** [September 7, 2022, 5:19am UTC](https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754/2 "2022-09-07T05:19:28Z")

</div>

Hi @Mina_Adel and welcome,  
What you’re trying to achieve is the typical use case for Form-Based User tasks.  
Every field in your form has a property, called form key. Camunda will automatically look for a variable with that name and bind it to the field, i.e., if your variable is called `yourVariable` configure the form key as follows:

 ![image](https://forum.camunda.io/uploads/default/original/3X/1/f/1fe5ea2cbc68145757b98dd0ed2a70d282d7f21e.png)  
If the value inside the form is changed, the variable will be updated.  
You can read more about forms in the Camunda 8 documentation:

> **[Camunda Forms reference | Camunda Platform 8](https://docs.camunda.io/docs/components/modeler/forms/camunda-forms-reference/)**
>
> Forms created with Camunda Modeler are embeddable in Tasklist.

---

<div class="post-metadata">

**Author:** ![Mina\_Adel](https://forum.camunda.io/user_avatar/forum.camunda.io/mina_adel/32/22298_2.png) [@Mina\_Adel](https://forum.camunda.io/u/Mina_Adel)\
**Post date:** [September 7, 2022, 8:52am UTC](https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754/3 "2022-09-07T08:52:13Z")

</div>

it works thanks @StephanHaarmann

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 31, 2024, 10:26am UTC](https://forum.camunda.io/t/view-variable-in-text-field-in-form-type-camunda-form/39754/4 "2024-01-31T10:26:36Z")

</div>

Closed on January 31, 2024, 10:26am UTC


