# form properties

**URL:** https://forum.servoy.com/t/form-properties/13563
**Category:** Classic Servoy
**Created:** [February 13, 2011, 9:14am UTC](https://forum.servoy.com/t/form-properties/13563 "2011-02-13T09:14:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Boudewijn](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Boudewijn](https://forum.servoy.com/u/Boudewijn)
#### Post date: [February 13, 2011, 9:14am UTC](https://forum.servoy.com/t/form-properties/13563/1 "2011-02-13T09:14:33Z")

</div>

I found it is hard to get form properties.  
Like, I need to know the position of a form, or the height  
So in my idea I would like to get that info as in:  
forms[‘formmname’].x and forms[‘formname’].y, forms[‘formname’].height

Well, I waas proven wrong. to get the x or y I need to use getLocationX(), getLocaltionY(). the form height is not available in any way!  
So having these (and a lot more properties) available woyuld really make our life a lot simpler.

---

<div class="post-metadata">

### Author: ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)
#### Post date: [February 13, 2011, 10:29am UTC](https://forum.servoy.com/t/form-properties/13563/2 "2011-02-13T10:29:27Z")

</div>

Hi Boudewijn,

A form consists out of form parts (header/body/footer/etc). So to get the form height you need to look at the form part heights.

```auto
var bodyHeight = controller.getPartHeight(JSPart.BODY);

```

For a full list of the JSPart properties check out the JSPart under the SolutionModel node (Solution Explorer view).

Hope this helps.

---

<div class="post-metadata">

### Author: ![Boudewijn](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Boudewijn](https://forum.servoy.com/u/Boudewijn)
#### Post date: [February 13, 2011, 9:33pm UTC](https://forum.servoy.com/t/form-properties/13563/3 "2011-02-13T21:33:43Z")

</div>

a form is a form is a form is a form. If I need to know the property then that is exactly what I want. the value of the property.
