# Solved: Obtaining data from Form into Pool variable

**URL:** <https://community.ofelia.com/t/solved-obtaining-data-from-form-into-pool-variable/8094>\
**Category:** Q&A\
**Created:** [15 January 2017 11:41 UTC](https://community.ofelia.com/t/solved-obtaining-data-from-form-into-pool-variable/8094 "2017-01-15T11:41:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladimir.popovic](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@vladimir.popovic](https://community.ofelia.com/u/vladimir.popovic)\
**Post date:** [15 January 2017 11:41 UTC](https://community.ofelia.com/t/solved-obtaining-data-from-form-into-pool-variable/8094/1 "2017-01-15T11:41:17Z")

</div>

I missed the step to add Execution \> Contract \> Inputs and to define the type there.

Hi guys,  
I have an issue I’m not able to solve, any sort of help is appreciated.

In the form, I have an formInput defined as  
{  
“person” : {  
“name” : “”,  
“age” : “”,  
“height” : “”  
}  
}

An formOutput as  
return {  
‘person’: $data.formInput.person  
};

The all three values are inputs from Input widget.  
name has type of Text, age and height have type of Number

Also, I have three pool variables:  
name : Text  
age : Integer  
height : Double

So, in a Human task, in Execution \> Operation, I can assign  
name Takes value of formInput.person.name  
age Takes value of formInput.person.age

But when I try to assign  
height Takes value of formInput.person.height  
I get error  
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Expression formInput.person.height with content = \<formInput.person.height\> depends on formInput is neither defined in the script nor in dependencies.

I’ve aslo tried to do it with a scripts:  
return (Double) formInput.person.height  
return formInput.person.height.toDouble()  
return formInput.person.height.toString().toDouble()

Tnx in advance,  
Vladimir
