# .getLabelForElementNames() from JField

**URL:** <https://forum.servoy.com/t/getlabelforelementnames-from-jfield/14312>\
**Category:** Classic Servoy\
**Created:** [July 18, 2011, 12:42pm UTC](https://forum.servoy.com/t/getlabelforelementnames-from-jfield/14312 "2011-07-18T12:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Broer](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@Karel\_Broer](https://forum.servoy.com/u/Karel_Broer)\
**Post date:** [July 18, 2011, 12:42pm UTC](https://forum.servoy.com/t/getlabelforelementnames-from-jfield/14312/1 "2011-07-18T12:42:59Z")

</div>

Is there a way to retrieve the labelFor element names from a JField in SOM?  
I noticed the option elements.myfield.getLabelForElementNames(), but that option is not available in SOM.

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [July 18, 2011, 12:55pm UTC](https://forum.servoy.com/t/getlabelforelementnames-from-jfield/14312/2 "2011-07-18T12:55:55Z")

</div>

There is no function like that in the solutionModel.  
But have you tried doing controller.recreateUI() en then elements.myfield.getLabelForElementNames() ?
