# How to send data from a form to the pool variable ?

**URL:** <https://community.ofelia.com/t/how-to-send-data-from-a-form-to-the-pool-variable/11064>\
**Category:** Q&A\
**Created:** [15 January 2022 20:10 UTC](https://community.ofelia.com/t/how-to-send-data-from-a-form-to-the-pool-variable/11064 "2022-01-15T20:10:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghazaa\_lll](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@ghazaa\_lll](https://community.ofelia.com/u/ghazaa_lll)\
**Post date:** [15 January 2022 20:10 UTC](https://community.ofelia.com/t/how-to-send-data-from-a-form-to-the-pool-variable/11064/1 "2022-01-15T20:10:04Z")

</div>

Hey everybody,

I'm new with bonita and I need to set a pool variable with form input. I think I should use groovy scripts in operations tab of my task, but I don't know how to fetch data from current form and assign it to my variable.

can anyone&nbsp;suggest a simple code?

Thanks

&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [19 January 2022 12:37 UTC](https://community.ofelia.com/t/how-to-send-data-from-a-form-to-the-pool-variable/11064/2 "2022-01-19T12:37:44Z")

</div>

Hi Ghazaa,

You need to add this variable in your task contract and add an operation to set your pool variable with the value coming from your contract.

Of course you need to make sure that your UID form will output the value in the contract (in formouput).

You will find a basic example here:&nbsp;[https://github.com/florentsarat/exampleVarInForm](https://github.com/florentsarat/exampleVarInForm)
